Bug 483799

Summary: Toolbar background changes after calling QMainWindow::restoreState
Product: [Plasma] Breeze Reporter: equeim
Component: QStyleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nate, noahadvs, uhhadd
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Sample code
First run
Second run

Description equeim 2024-03-16 23:49:46 UTC
Created attachment 167350 [details]
Sample code

SUMMARY
After calling QMainWindow::restoreState() (i.e. after first run for typical application), toolbar's background does not match window decoration color anymore.

Sample code:


STEPS TO REPRODUCE
1. Save main window state using QMainWindow::saveState
2. Restore main window state using QMainWindow::restoreState

OBSERVED RESULT
Toolbar's background does not match window decoration.

EXPECTED RESULT
Toolbar's background matches window decoration.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version:  6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 equeim 2024-03-16 23:50:21 UTC
Created attachment 167351 [details]
First run
Comment 2 equeim 2024-03-16 23:50:30 UTC
Created attachment 167352 [details]
Second run