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

Wrongly painted background of QPushButton and QToolButton

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.7.1, 5.3.1, 5.5.0
    • Widgets: Style Sheets
    • None
    • MS Windows XP, Windows 7 64 bit
      VS 2008, VS 2013

    Description

      the stylesheet

      QPushButton, QToolButton

      { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #5c8dc2, stop: 1 #9ec2e9); }

      makes all the button filled with completely black background.

      this happens when qlineargradient is applied as background.

      However the same stylesheet having additional items like:

      QPushButton, QToolButton

      { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #5c8dc2, stop: 1 #9ec2e9); color: white; }

      will be painted correctly.

      Attachments

        1. dialog.ui
          1 kB
          Ars Masiuk
        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
            amasiuk Ars Masiuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes