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

QLinearGradient StyleSheet doesn't accept rgb(a) colors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.12.0 Beta 2
    • Component/s: Widgets: Style Sheets
    • Labels:
      None
    • Environment:
      All
    • Commits:
      bbe08d6b686456297ad4ab8c0923c3126e02e2b3 (qt/qtbase/5.12)

      Description

      Fragments 1 and 2 of the applied code (file main.cpp) having HTML colors and named colors work fine (screenshots pict1.png and pict2.png respectively), fragment 3 having rgb colors doesn't produce any visual effect (screenshot pict3.png).

       

      Workaround:

      A workaround is to remove the spaces after function definitions.

        Attachments

        1. main.cpp
          0.9 kB
        2. pict1.png
          pict1.png
          13 kB
        3. pict2.png
          pict2.png
          12 kB
        4. pict3.png
          pict3.png
          12 kB

          Issue Links

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

            Activity

              People

              Assignee:
              chehrlic Christian Ehrlicher
              Reporter:
              alexex Letov Alexey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes