ubuntu-ui-toolkit-launcher doesn't support Window as root item
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Committed
|
High
|
Cris Dywan |
Bug Description
Using a QtQuick.Window as a root item with ubuntu-
import QtQuick 2.4
import QtQuick.Window 2.2
import Ubuntu.Components 1.3
Window {
title: "Hello World"
minimumWidth: units.gu(30)
minimumHeight: units.gu(50)
maximumWidth: units.gu(90)
maximumHeight: units.gu(120)
MainView {
}
}
QQuickView only supports loading of root objects that derive from QQuickItem.
If your example is using QML 2, (such as qmlscene) and the .qml file you
loaded has 'import QtQuick 1.0' or Qt 4.7', this error will occur.
To load files with 'import QtQuick 1.0' or Qt 4.7', use the
QDeclarativeView class in the Qt Quick 1 module.
That same piece of code works with qmlscene.
See also bug 1587431.
Related branches
- ubuntu-sdk-build-bot: Needs Fixing (continuous-integration)
- Tim Peeters: Approve
-
Diff: 224 lines (+139/-26)4 files modifiedtests/autopilot/ubuntuuitoolkit/tests/test_launcher.py (+12/-0)
tests/autopilot/ubuntuuitoolkit/tests/test_launcher.testcase.qml (+1/-1)
tests/autopilot/ubuntuuitoolkit/tests/test_launcher.window.qml (+43/-0)
ubuntu-ui-toolkit-launcher/launcher.cpp (+83/-25)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |