← Back to team overview

touch-packages team mailing list archive

[Bug 1395690] Re: importing Ubuntu.Components makes Image source property non notify-able

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided => Critical

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => Confirmed

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: (unassigned) => Zsombor Egri (zsombi)

-- 
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/1395690

Title:
  importing Ubuntu.Components makes Image source property non notify-
  able

Status in Ubuntu UI Toolkit:
  Confirmed
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Confirmed

Bug description:
  The following code works

  import QtQuick 2.3

  Image {
      id: image

      visible: source != ""

      Component.onCompleted: image.source = "myimage.jpg"
  }

  but if you add the Ubuntu.Components import it breaks

  
  import QtQuick 2.3
  import Ubuntu.Components 1.1

  Image {
      id: image

      visible: source != ""

      Component.onCompleted: image.source = "myimage.jpg"
  }

  and you get

  QQmlExpression: Expression file:///home/tsdgeos_work/borrame/main.qml:8:14 depends on non-NOTIFYable properties:
      QQuickImage::source

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