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

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

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      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

        For Gerrit Dashboard: QTBUG-78943
        # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes