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

Stylesheet using qlineargradient not showing on linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.7.0
    • Widgets: Style Sheets
    • None
    • Ubuntu 16.04

    Description

      I have a gui that runs on both linux and windows. The stylesheet to set the background color of my widgets using qlineargradient doesn't show up on linux (shows up as pure black) but shows up properly on windows. I'm using qt 5.6 and have tried 5.7 as well. I'm using Linux Ubuntu 16.04.

      This is how i was using the qlineargradient style for my toolbar and statusbar widgets. I think it should also be reproducible for other widget types.

      QToolBar

      { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(255,255,255), stop: 0.4 rgb(250,250,250), stop: 0.5 rgb(250,250,250), stop: 1.0 rgb(240,240,240)); }

      QStatusBar

      { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(255,255,255), stop: 0.4 rgb(250,250,250), stop: 0.5 rgb(250,250,250), stop: 1.0 rgb(240,240,240)); }

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ccptleu Corina Leung
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes