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

QLinearGradient StyleSheet doesn't accept rgb(a) colors

    XMLWordPrintable

Details

    • 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. pict3.png
          pict3.png
          12 kB
        2. pict2.png
          pict2.png
          12 kB
        3. pict1.png
          pict1.png
          13 kB
        4. main.cpp
          0.9 kB

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              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