mac style: merged title bar and content area?
-
not using Qt i can create a window where the title bar appear to be part of the content:
using Qt i can't seem to get that effect:
if i try "unifiedTitleAndToolBarOnMac", it looks a WEE bit better, but doesn't do the job:
how do i get what i want? I think it may be related to "brushed metal" look but that's been removed? (using latest Qt)
-
workaround: Add
Qt::NoTitleBarBackgroundHint
window flag -
does nobody have an idea?
-
Have a try with this method of QMainWindow:
unifiedTitleAndToolBarOnMac : bool This property holds whether the window uses the unified title and toolbar look on OS X. Note that the Qt 5 implementation has several limitations compared to Qt 4: Use in windows with OpenGL content is not supported. This includes QGLWidget and QOpenGLWidget. Using dockable or movable toolbars may result in painting errors and is not recommended This property was introduced in Qt 5.2. Access functions: bool unifiedTitleAndToolBarOnMac() const void setUnifiedTitleAndToolBarOnMac(bool set)
[EDIT]
if i try "unifiedTitleAndToolBarOnMac", it looks a WEE bit better, but doesn't do the job:
Sorry i missed that ...
-
@davecotter said in mac style: merged title bar and content area?:
unifiedTitleAndToolBarOnMac
sigh. why remove the "brushed metal" selector when the OS still supports it, even if deprecated?
-
nobody knows?
-
some intervening update HAD fixed the issue, up to Qt 6.8.0
but now, in Qt 6.9 beta 2, the problem is back:
Is this a bug?
-
Hi
I am not sure to follow you. Do you want to have the window title bar to have the same tint as your application window content ?
-
in the most recent post, i want the 6.9 version to look like the 6.8 version.
so i guess the answer is yes, same exact "tint" or color, yes.i thought that's what
unifiedTitleAndToolBarOnMac
did? but apparently not any more? -
workaround: Add
Qt::NoTitleBarBackgroundHint
window flag -