Added a test case that prints the warning without QT_DEVICE_PIXEL_RATIO
into the description
** Description changed:
Ubuntu UI Toolkit r1905
Description:
When QT_DEVICE_PIXEL_RATIO>1 is set, using Icon without specifying an
explicit size causes binding loops on implicitWidth (and also implicitHeight
How to reproduce:
QT_DEVICE_PIXEL_RATIO=2 qmlscene main.qml
where main.qml is:
import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
- id: gallery
- Icon {
- name: "add"
+ id: gallery
+ Icon {
+ name: "add"
+ }
+ }
+
+
+ ===========
+
+ test case 2 (without setting QT_DEVICE_PIXEL_RATIO). Note, depending on
+ what else is in the layout, this can freeze the app on rotation and
+ similar. Don't have a test case atm but will attach one when I come by
+ such a freeze next time.
+
+ import QtQuick 2.4
+ import Ubuntu.Components 1.3
+ import QtQuick.Layouts 1.1
+
+
+ MainView {
+ width: units.gu(100)
+ height: units.gu(75)
+
+ RowLayout {
+ anchors.centerIn: parent
+ Icon {
+ Layout.preferredHeight: units.gu(2)
+ Layout.preferredWidth: units.gu(2)
+ name: "tick"
+ }
}
}
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1561654
Title:
Icon creates binding loop on implicitWidth and implicitHeight
Status in ubuntu-ui-toolkit package in Ubuntu:
Confirmed
Bug description:
Ubuntu UI Toolkit r1905
Description:
When QT_DEVICE_PIXEL_RATIO>1 is set, using Icon without specifying an
explicit size causes binding loops on implicitWidth (and also implicitHeight
How to reproduce:
QT_DEVICE_PIXEL_RATIO=2 qmlscene main.qml
where main.qml is:
import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
id: gallery
Icon {
name: "add"
}
}
===========
test case 2 (without setting QT_DEVICE_PIXEL_RATIO). Note, depending
on what else is in the layout, this can freeze the app on rotation and
similar. Don't have a test case atm but will attach one when I come by
such a freeze next time.
import QtQuick 2.4
import Ubuntu.Components 1.3
import QtQuick.Layouts 1.1
MainView {
width: units.gu(100)
height: units.gu(75)
RowLayout {
anchors.centerIn: parent
Icon {
Layout.preferredHeight: units.gu(2)
Layout.preferredWidth: units.gu(2)
name: "tick"
}
}
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1561654/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp