mac style: merged title bar and content area?
-
wrote on 24 Sept 2019, 18:21 last edited by
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)
-
wrote on 6 Feb 2025, 19:29 last edited by
workaround: Add
Qt::NoTitleBarBackgroundHint
window flag -
wrote on 25 Sept 2019, 21:50 last edited by
does nobody have an idea?
-
wrote on 25 Sept 2019, 23:01 last edited by mpergand
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 ...
-
wrote on 25 Sept 2019, 23:52 last edited by
@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?
-
wrote on 1 Oct 2019, 21:36 last edited by
nobody knows?
-
wrote on 5 Feb 2025, 19:05 last edited by
-
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 ?
-
wrote on 5 Feb 2025, 20:32 last edited by
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? -
wrote on 6 Feb 2025, 19:29 last edited by
workaround: Add
Qt::NoTitleBarBackgroundHint
window flag -