Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOs Maximize issue #14

Open
ghost opened this issue Apr 30, 2018 · 2 comments
Open

MacOs Maximize issue #14

ghost opened this issue Apr 30, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 30, 2018

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

@tinybug
Copy link

tinybug commented Jan 16, 2020

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
Copy link

zhengKey commented Dec 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants