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

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

XMLWordPrintable

    • Windows
    • 00f903f3b4cd46ddf8361876401e5405030f97f1

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes