赞
踩
可以设置为Qt::Tool或者Qt::SubWindow就能实现这种一个应用程序有2个主窗口,任务栏只有一个应用程序图标
flags Qt::WindowFlags
This enum type is used to specify various window-system properties for the widget. They are fairly unusual but necessary in a few cases. Some of these flags depend on whether the underlying window manager supports them.
The main types are
Constant |
Value |
Description |
Qt::Widget |
0x00000000 |
This is the default type for QWidget. Widgets of this type are child widgets if they have a parent, and independent windows if they have no parent. See also Qt::Window and Qt::SubWindow. |
Qt::Window |
0x00000001 |
Indicates that the widget is a window, usually with a window system frame and a title bar, irrespective |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。