Bug 483799 - Toolbar background changes after calling QMainWindow::restoreState
Summary: Toolbar background changes after calling QMainWindow::restoreState
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (other bugs)
Version First Reported In: 6.0.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-16 23:49 UTC by equeim
Modified: 2024-04-10 21:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Sample code (1.61 KB, text/x-c++src)
2024-03-16 23:49 UTC, equeim
Details
First run (19.23 KB, image/png)
2024-03-16 23:50 UTC, equeim
Details
Second run (19.25 KB, image/png)
2024-03-16 23:50 UTC, equeim
Details

Note You need to log in before you can comment on or make changes to this bug.
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