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

QLinearGradient StyleSheet doesn't accept rgb(a) colors

XMLWordPrintable

    • bbe08d6b686456297ad4ab8c0923c3126e02e2b3 (qt/qtbase/5.12)

      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.

        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
        For Gerrit Dashboard: QTBUG-61795
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes