当前位置:   article > 正文

qt 一个应用程序有2个主窗口,任务栏只有一个应用程序图标_qt linux下 对话框跟主程序再任务栏只显示一个图标

qt linux下 对话框跟主程序再任务栏只显示一个图标

可以设置为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

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号