ok. I totally stand corrected... turns out, the apps I start on my
laptop actually all have QT_DEVICE_PIXEL_RATIO set to 2 implicitly
through QtCreator which is why I see this issue all the time. I'm so
sorry for the noise. I'll revert all my changes to this bug.

In any case, we'll soon be enabling the use of QT_DEVICE_PIXEL_RATIO on
the phones too so this is quite important nevertheless.

** Summary changed:

- Icon creates binding loop on implicitWidth and implicitHeight
+ Icon creates binding loop on implicitWidth and implicitHeight when used with 
QT_DEVICE_PIXEL_RATIO

** Description changed:

  Ubuntu UI Toolkit r1905
  
  Description:
  Using Icon without specifying an explicit size causes binding loops on 
implicitWidth (and also implicitHeight)
  
  How to reproduce:
  
- ===========
- test case 1: QT_DEVICE_PIXEL_RATIO=2 qmlscene main.qml
+ test case: 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"
-         }
-     }
- }

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1561654

Title:
  Icon creates binding loop on implicitWidth and implicitHeight when
  used with QT_DEVICE_PIXEL_RATIO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1561654/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to