Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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:

    Screen Shot 2019-09-24 at 10.24.40 AM.png

    using Qt i can't seem to get that effect:

    Screen Shot 2019-09-24 at 10.18.58 AM.png

    if i try "unifiedTitleAndToolBarOnMac", it looks a WEE bit better, but doesn't do the job:

    Screen Shot 2019-09-24 at 10.24.21 AM.png

    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)



  • 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?


Log in to reply