Skip to content

fix(example): preserve the custom title bar on Linux#239

Merged
wangwenx190 merged 1 commit into
stdware:mainfrom
ice909:main
Jul 18, 2026
Merged

fix(example): preserve the custom title bar on Linux#239
wangwenx190 merged 1 commit into
stdware:mainfrom
ice909:main

Conversation

@ice909

@ice909 ice909 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

KDE Breeze calls QMainWindow::menuBar() while polishing a QMainWindow. This replaces the custom menu widget with an empty QMenuBar and schedules WindowBar for deletion.

Use the built-in Fusion style on Linux to avoid the Breeze code path while preserving native styles on other platforms.

Fix: #204

Before:

qwk-mainwindow-before

After:

qwk-mainwindow-after

KDE Breeze calls QMainWindow::menuBar() while polishing a QMainWindow. This replaces the custom menu widget with an empty QMenuBar and schedules WindowBar for deletion.

Use the built-in Fusion style on Linux to avoid the Breeze code path while preserving native styles on other platforms.
@wangwenx190

Copy link
Copy Markdown
Collaborator

Thanks!

@wangwenx190
wangwenx190 merged commit 34e857a into stdware:main Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[缺陷] 仓库 example 编译标题栏不显示

2 participants