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

Cascading Stylesheet not updated (Regression from Qt 5.11)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.12.5
    • Widgets: Style Sheets
    • None
    • Windows

    Description

      Setting stylesheet on a widget for the second time (after it is showed) don't update children widget stylesheets.

      From a simple standard QWidget app projet:

          QApplication a(argc, argv);
          MainWindow w;
          w.setStyleSheet("QWidget { background-color: rgb(200, 100, 100) }");
          w.show();
          w.setStyleSheet("QWidget { background-color: rgb(100, 100, 200) }");
          return a.exec();
      

       

      Expected result (works with Qt 5.11.1):

       

      Result with Qt 5.12.5:

       

      Complete small project in attachment.

       

       

      Attachments

        Issue Links

          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
              ness522 Stéphane Fabry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes