qt去除标题栏显示

代码如下:

    this->setWindowFlags(Qt::FramelessWindowHint);

在qt的帮助文档中可以看到如下:
Indicates that the widget is a tool window. A tool window is often a small window with a smaller than usual title bar and decoration, typically used for collections of tool buttons. If there is a parent, the tool window will always be kept on top of it. If there isn’t a parent, you may consider using Qt::WindowStaysOnTopHint as well. If the window system supports it, a tool window can be decorated with a somewhat lighter frame. It can also be combined with Qt::FramelessWindowHint. On macOS, tool windows correspond to the Floating class of

你可能感兴趣的:(图形界面QT)