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

AA_UseStyleSheetPropagationInWidgetStyles does not work if parent widget is already shown

    XMLWordPrintable

Details

    • Windows
    • f2b681dc5 (dev), 359b64828 (6.7), 29a75b99f (6.6)

    Description

      Run the attached testcase and see red text "Test". This is correct as the style sheet is set to "QMainWindow { color: red }" and the red color propagates to the text.

      Now click RMB and see "Test 2" but in black! It is expected to be red as the QLabel is child of QMainWindow and it should derive the palette.

      What is interesting if you uncomment lines 26,27 (which set and reset some dummy sylesheet to the label) the label gets proper color:   

          ll->setStyleSheet("background-color: blue");
          ll->setStyleSheet("");

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            grzegorz.plonka Grzegorz Plonka
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: