From bdc57c6ec9b08f74ca65a06b8496fbaa3268c5fd Mon Sep 17 00:00:00 2001 From: Dylan Liu <mentalflow@ourdocs.cn> Date: 周六, 04 5月 2024 20:51:20 +0800 Subject: [PATCH] Fix macOS title bar buttons not displaying properly. --- examples/shared/widgetframe/windowbar.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/examples/shared/widgetframe/windowbar.cpp b/examples/shared/widgetframe/windowbar.cpp index 8753bc2..362383f 100644 --- a/examples/shared/widgetframe/windowbar.cpp +++ b/examples/shared/widgetframe/windowbar.cpp @@ -25,7 +25,7 @@ if (QLocale::system().textDirection() == Qt::RightToLeft) { layout->setDirection(QBoxLayout::RightToLeft); } - + layout->setContentsMargins(QMargins()); layout->setSpacing(0); for (int i = IconButton; i <= CloseButton; ++i) { -- Gitblit v1.9.1