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

Repeatedly setting a widget style sheets has issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.2
    • 4.8.5, 5.3.0
    • Widgets: Style Sheets
    • None
    • 47b3ecf3f49933f2a7e3a9dd98f0641d513822bb

    Description

      The attached test program creates four frames with a background set via setStyleSheet() multiple times. In all four cases, the final background should be green (#00FF00).

      Running with Qt 4.8.5, I get "green, green, red, green"
      Running with Qt 5.3.0, I get "green, red, red, red"

      Both a wrong, but as you see, 5.3.0 has an additional regression.

      Attachments

        1. main.cpp
          1 kB
        2. qtbug39427.png
          qtbug39427.png
          17 kB
        3. qtbug39427.zip
          1 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-39427
          # Subject Branch Project Status CR V

          Activity

            People

              andysh Andy Shaw
              cfeck Christoph Feck
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes