Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ApplicationWindow.qml - hasColor property ( Qt > 5.3 )
Forum Updated to NodeBB v4.3 + New Features

ApplicationWindow.qml - hasColor property ( Qt > 5.3 )

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 641 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    michel.giroday
    wrote on last edited by
    #1

    I noticed the following lines of code:
    ( lines 216/218 ) ApplicationWindow.qml:
    property QtObject styleData: QtObject {
    readonly property bool hasColor: root.color != "#ffffff"
    }

    This results in getting no color when setting the color property of our ApplicationWindow to "white" or "#ffffff"
    I would have write it this way: readonly property bool hasColor: root.color != undefined

    It sounds like a bug - did you already have an issue filed on this matter?

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      Someone has reported it. See "QTBUG-43002":https://bugreports.qt.io/browse/QTBUG-43002.

      157

      1 Reply Last reply
      0
      • M Offline
        M Offline
        michel.giroday
        wrote on last edited by
        #3

        ok thanks! :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved