TrueFramelessWindow icon indicating copy to clipboard operation
TrueFramelessWindow copied to clipboard

MacOs Maximize issue

Open ghost opened this issue 7 years ago • 2 comments

Hello,

When I switch the app on full screen and then switch back to the normal size, the title bar is not hidden anymore.

Thanks

ghost avatar Apr 30 '18 12:04 ghost

in widget.h add changeEvent to public slots

public slots:
    virtual void changeEvent(QEvent * event)

in widget.cpp add follow code:

void Widget::changeEvent( QEvent* e )
{
#ifdef __APPLE__
    OSXHideTitleBar::HideTitleBar(winId());
#endif
}

hide title bar whatever event happend

tinybug avatar Jan 16 '20 17:01 tinybug

I'm having an issue where when I add a QTabBar widget to a window, the native system title bar appears again, how can I fix it?

in widget.h add changeEvent to public slots

public slots:
    virtual void changeEvent(QEvent * event)

in widget.cpp add follow code:

void Widget::changeEvent( QEvent* e )
{
#ifdef __APPLE__
    OSXHideTitleBar::HideTitleBar(winId());
#endif
}

hide title bar whatever event happend

zhengKey avatar Dec 07 '23 06:12 zhengKey