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

Colors with alpha don't work with ternary operator

    XMLWordPrintable

Details

    • cfc536842a205a951457e2630b04de2262ffaa46

    Description

      If you do:
      color: condition ? "#10000000" : "#20000000"

      it fails with "Unable to assign QString to QColor"

      color: "#10000000" works
      and color: condition ? "#000000" : "#000000" works too

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes