Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78943

QML Binding on text type property is not working for color strings

    XMLWordPrintable

Details

    • Windows
    • 00f903f3b4cd46ddf8361876401e5405030f97f1

    Description

      If Binding is set for text property of QML Text and value is set to some color string, say "red", the value returned to Text Item text gets changed to #ff0000.

          Text {
              id: colorLabel
          }
          Binding {
              target: colorLabel
              property: "text"
              value: "red" // this is wrongly converted to "#ff0000" but is NOT a color!
          }
      

      Please refer to the attached sample.

      Attachments

        Activity

          People

            fabiankosmale Fabian Kosmale
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: