Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Create a window without title bar on OSX
I would like to create an app in Mac without title bar just like the above article by using the NSFullSizeContentViewWindowMask flag , so that the window controls (close , max min etc) are still present.
However, this article also pointed out that the window will turn black in some case. The author do not have a method to fix it.
I test it with Qt 5.8. The screen will be completely black, if I switch out and switch in again. It will display correct content. Just wonder any one has experience in this issue and willing to share your finding here?
Thanks for any advise.
setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
do what you want?
@jsulm Thx. But this method don't keep the max / min and close button at the top/left corner of window.