It appears that types that inherit QQmlValueType are not exposed any longer 
with Qt 5.5.
This can be observed with this simple piece of QML code:

  import QtQuick 2.4
  import com.canonical.Oxide 1.11 as Oxide
  Item {
    Component.onCompleted: {
      console.log(Oxide.SecurityStatus) // is a QObject, prints "[object 
Object]"
      console.log(Oxide.SecurityStatus.SecurityLevelError) // prints "4"
      console.log(Oxide.LoadEvent) // is a QQmlValueType, prints "undefined"
      console.log(Oxide.SslCertificate) // is a QQmlValueType, prints 
"undefined"
    }
  }

** Package changed: webbrowser-app (Ubuntu) => oxide-qt (Ubuntu)

** Summary changed:

- [desktop] On xenial, multiple TypeError messages when starting browser
+ On xenial, types that inherit QQmlValueType are not exposed

-- 
You received this bug notification because you are a member of Ubuntu
Apps bug tracking, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1532135

Title:
  Types that inherit QQmlValueType are not exposed to QML

Status in Oxide:
  New
Status in oxide-qt package in Ubuntu:
  New

Bug description:
  When launching webbrowser-app in a clean and up-to-date xenial desktop
  VM, I’m seeing the following messages in the console:

  file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Web/UbuntuWebView02.qml:142: 
TypeError: Cannot read property 'TypeFailed' of undefined
  file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Web/UbuntuWebView02.qml:141: 
TypeError: Cannot read property 'TypeStopped' of undefined
  file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Web/UbuntuWebView02.qml:140: 
TypeError: Cannot read property 'TypeSucceeded' of undefined
  file:///usr/share/webbrowser-app/webbrowser/Browser.qml:1196: TypeError: 
Cannot read property 'TypeCommitted' of undefined
  file:///usr/share/webbrowser-app/ChromeController.qml:78: TypeError: Cannot 
read property 'TypeStarted' of undefined

  (I’m seeing multiple instances of each message)

  oxide version 1.11.3-0ubuntu3 is installed

To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1532135/+subscriptions

-- 
Mailing list: https://launchpad.net/~ubuntu-apps-bugs
Post to     : ubuntu-apps-bugs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-apps-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to