pub struct WidgetAttribute(/* private fields */);
Expand description
This enum type is used to specify various widget attributes. Attributes are set and cleared with QWidget::setAttribute(), and queried with QWidget::testAttribute(), although some have special convenience functions which are mentioned below.
C++ enum: Qt::WidgetAttribute
.
This enum type is used to specify various widget attributes. Attributes are set and cleared with QWidget::setAttribute(), and queried with QWidget::testAttribute(), although some have special convenience functions which are mentioned below.
Implementations§
Source§impl WidgetAttribute
impl WidgetAttribute
Sourcepub const WADisabled: WidgetAttribute
pub const WADisabled: WidgetAttribute
Indicates that the widget is disabled, i.e. it does not receive any mouse or keyboard events. There is also a getter functions QWidget::isEnabled(). This is set/cleared by the Qt kernel. (C++ enum variant: WA_Disabled = 0
)
Sourcepub const WAUnderMouse: WidgetAttribute
pub const WAUnderMouse: WidgetAttribute
Indicates that the widget is under the mouse cursor. The value is not updated correctly during drag and drop operations. There is also a getter function, QWidget::underMouse(). This flag is set or cleared by the Qt kernel. (C++ enum variant: WA_UnderMouse = 1
)
Sourcepub const WAMouseTracking: WidgetAttribute
pub const WAMouseTracking: WidgetAttribute
Indicates that the widget has mouse tracking enabled. See QWidget::mouseTracking. (C++ enum variant: WA_MouseTracking = 2
)
Sourcepub const WAContentsPropagated: WidgetAttribute
pub const WAContentsPropagated: WidgetAttribute
This flag is superfluous and obsolete; it no longer has any effect. Since Qt 4.1, all widgets that do not set WA_PaintOnScreen propagate their contents. (C++ enum variant: WA_ContentsPropagated = 3
)
Sourcepub const WAOpaquePaintEvent: WidgetAttribute
pub const WAOpaquePaintEvent: WidgetAttribute
Indicates that the widget paints all its pixels when it receives a paint event. Thus, it is not required for operations like updating, resizing, scrolling and focus changes to erase the widget before generating paint events. The use of WA_OpaquePaintEvent provides a small optimization by helping to reduce flicker on systems that do not support double buffering and avoiding computational cycles necessary to erase the background prior to painting. Note: Unlike WA_NoSystemBackground, WA_OpaquePaintEvent makes an effort to avoid transparent window backgrounds. This flag is set or cleared by the widget’s author. (C++ enum variant: WA_OpaquePaintEvent = 4
)
Sourcepub const WANoBackground: WidgetAttribute
pub const WANoBackground: WidgetAttribute
This value is obsolete. Use WA_OpaquePaintEvent instead. (C++ enum variant: WA_NoBackground = 4
)
Sourcepub const WAStaticContents: WidgetAttribute
pub const WAStaticContents: WidgetAttribute
Indicates that the widget contents are north-west aligned and static. On resize, such a widget will receive paint events only for parts of itself that are newly visible. This flag is set or cleared by the widget’s author. (C++ enum variant: WA_StaticContents = 5
)
Sourcepub const WALaidOut: WidgetAttribute
pub const WALaidOut: WidgetAttribute
C++ enum variant: WA_LaidOut = 7
Sourcepub const WAPaintOnScreen: WidgetAttribute
pub const WAPaintOnScreen: WidgetAttribute
Indicates that the widget wants to draw directly onto the screen. Widgets with this attribute set do not participate in composition management, i.e. they cannot be semi-transparent or shine through semi-transparent overlapping widgets. Note: This flag is only supported on X11 and it disables double buffering. On Qt for Embedded Linux, the flag only works when set on a top-level widget and it relies on support from the active screen driver. This flag is set or cleared by the widget’s author. To render outside of Qt’s paint system, e.g., if you require native painting primitives, you need to reimplement QWidget::paintEngine() to return 0 and set this flag. (C++ enum variant: WA_PaintOnScreen = 8
)
Sourcepub const WANoSystemBackground: WidgetAttribute
pub const WANoSystemBackground: WidgetAttribute
Indicates that the widget has no background, i.e. when the widget receives paint events, the background is not automatically repainted. Note: Unlike WA_OpaquePaintEvent, newly exposed areas are never filled with the background (e.g., after showing a window for the first time the user can see “through” it until the application processes the paint events). This flag is set or cleared by the widget’s author. (C++ enum variant: WA_NoSystemBackground = 9
)
Sourcepub const WAUpdatesDisabled: WidgetAttribute
pub const WAUpdatesDisabled: WidgetAttribute
Indicates that updates are blocked (including the system background). This flag is set or cleared by the Qt kernel. Warning: This flag must never be set or cleared by the widget’s author. (C++ enum variant: WA_UpdatesDisabled = 10
)
Sourcepub const WAMapped: WidgetAttribute
pub const WAMapped: WidgetAttribute
Indicates that the widget is mapped on screen. This is set/cleared by the Qt kernel. (C++ enum variant: WA_Mapped = 11
)
Sourcepub const WAMacNoClickThrough: WidgetAttribute
pub const WAMacNoClickThrough: WidgetAttribute
When a widget that has this attribute set is clicked, and its window is inactive, the click will make the window active but won’t be seen by the widget. Typical use of this attribute is on widgets with “destructive” actions, such as a “Delete” button. WA_MacNoClickThrough also applies to all child widgets of the widget that has it set. (C++ enum variant: WA_MacNoClickThrough = 12
)
Sourcepub const WAInputMethodEnabled: WidgetAttribute
pub const WAInputMethodEnabled: WidgetAttribute
Enables input methods for Asian languages. Must be set when creating custom text editing widgets. (C++ enum variant: WA_InputMethodEnabled = 14
)
Sourcepub const WAWStateVisible: WidgetAttribute
pub const WAWStateVisible: WidgetAttribute
C++ enum variant: WA_WState_Visible = 15
Sourcepub const WAWStateHidden: WidgetAttribute
pub const WAWStateHidden: WidgetAttribute
C++ enum variant: WA_WState_Hidden = 16
Sourcepub const WAForceDisabled: WidgetAttribute
pub const WAForceDisabled: WidgetAttribute
Indicates that the widget is explicitly disabled, i.e. it will remain disabled even when all its ancestors are set to the enabled state. This implies WA_Disabled. This is set/cleared by QWidget::setEnabled() and QWidget::setDisabled(). (C++ enum variant: WA_ForceDisabled = 32
)
Sourcepub const WAKeyCompression: WidgetAttribute
pub const WAKeyCompression: WidgetAttribute
Enables key event compression if set, and disables it if not set. By default key compression is off, so widgets receive one key press event for each key press (or more, since autorepeat is usually on). If you turn it on and your program doesn’t keep up with key input, Qt may try to compress key events so that more than one character can be processed in each event. For example, a word processor widget might receive 2, 3 or more characters in each QKeyEvent::text(), if the layout recalculation takes too long for the CPU. If a widget supports multiple character unicode input, it is always safe to turn the compression on. Qt performs key event compression only for printable characters. Qt::Modifier keys, cursor movement keys, function keys and miscellaneous action keys (e.g. Escape, Enter, Backspace, PrintScreen) will stop key event compression, even if there are more compressible key events available. Platforms other than Mac and X11 do not support this compression, in which case turning it on will have no effect. This is set/cleared by the widget’s author. (C++ enum variant: WA_KeyCompression = 33
)
Sourcepub const WAPendingMoveEvent: WidgetAttribute
pub const WAPendingMoveEvent: WidgetAttribute
Indicates that a move event is pending, e.g., when a hidden widget was moved. This flag is set or cleared by the Qt kernel. (C++ enum variant: WA_PendingMoveEvent = 34
)
Sourcepub const WAPendingResizeEvent: WidgetAttribute
pub const WAPendingResizeEvent: WidgetAttribute
Indicates that a resize event is pending, e.g., when a hidden widget was resized. This flag is set or cleared by the Qt kernel. (C++ enum variant: WA_PendingResizeEvent = 35
)
Sourcepub const WASetPalette: WidgetAttribute
pub const WASetPalette: WidgetAttribute
Indicates that the widget has a palette of its own. This flag is set or cleared by QWidget::setPalette(). (C++ enum variant: WA_SetPalette = 36
)
Sourcepub const WASetFont: WidgetAttribute
pub const WASetFont: WidgetAttribute
Indicates that the widget has a font of its own. This flag is set or cleared by QWidget::setFont(). (C++ enum variant: WA_SetFont = 37
)
Sourcepub const WASetCursor: WidgetAttribute
pub const WASetCursor: WidgetAttribute
Indicates that the widget has a cursor of its own. This flag is set or cleared by QWidget::setCursor() and QWidget::unsetCursor(). (C++ enum variant: WA_SetCursor = 38
)
Sourcepub const WANoChildEventsFromChildren: WidgetAttribute
pub const WANoChildEventsFromChildren: WidgetAttribute
Indicates that the widget does not want to receive ChildAdded or ChildRemoved events sent from its children. This is set by a widget’s author. (C++ enum variant: WA_NoChildEventsFromChildren = 39
)
Sourcepub const WAWindowModified: WidgetAttribute
pub const WAWindowModified: WidgetAttribute
Indicates that the window is marked as modified. On some platforms this flag will do nothing, on others (including macOS and Windows) the window will take a modified appearance. This flag is set or cleared by QWidget::setWindowModified(). (C++ enum variant: WA_WindowModified = 41
)
Sourcepub const WAResized: WidgetAttribute
pub const WAResized: WidgetAttribute
Indicates that the widget has an explicit size. This flag is set or cleared by QWidget::resize() and QWidget::setGeometry(). (C++ enum variant: WA_Resized = 42
)
Sourcepub const WAMoved: WidgetAttribute
pub const WAMoved: WidgetAttribute
Indicates that the widget has an explicit position. This is set/cleared by QWidget::move() and by QWidget::setGeometry(). (C++ enum variant: WA_Moved = 43
)
Sourcepub const WAPendingUpdate: WidgetAttribute
pub const WAPendingUpdate: WidgetAttribute
C++ enum variant: WA_PendingUpdate = 44
Sourcepub const WAInvalidSize: WidgetAttribute
pub const WAInvalidSize: WidgetAttribute
C++ enum variant: WA_InvalidSize = 45
Sourcepub const WAMacBrushedMetal: WidgetAttribute
pub const WAMacBrushedMetal: WidgetAttribute
Indicates the widget should be drawn in the brushed metal style as supported by the windowing system. This attribute is only applicable to macOS. (C++ enum variant: WA_MacBrushedMetal = 46
)
Sourcepub const WAMacMetalStyle: WidgetAttribute
pub const WAMacMetalStyle: WidgetAttribute
C++ enum variant: WA_MacMetalStyle = 46
Sourcepub const WACustomWhatsThis: WidgetAttribute
pub const WACustomWhatsThis: WidgetAttribute
Indicates that the widget wants to continue operating normally in “What’s This?” mode. This is set by the widget’s author. (C++ enum variant: WA_CustomWhatsThis = 47
)
Sourcepub const WALayoutOnEntireRect: WidgetAttribute
pub const WALayoutOnEntireRect: WidgetAttribute
Indicates that the widget wants QLayout to operate on the entire QWidget::rect(), not only on QWidget::contentsRect(). This is set by the widget’s author. (C++ enum variant: WA_LayoutOnEntireRect = 48
)
Sourcepub const WAOutsideWSRange: WidgetAttribute
pub const WAOutsideWSRange: WidgetAttribute
Indicates that the widget is outside the valid range of the window system’s coordinate system. A widget outside the valid range cannot be mapped on screen. This is set/cleared by the Qt kernel. (C++ enum variant: WA_OutsideWSRange = 49
)
Sourcepub const WAGrabbedShortcut: WidgetAttribute
pub const WAGrabbedShortcut: WidgetAttribute
C++ enum variant: WA_GrabbedShortcut = 50
Sourcepub const WATransparentForMouseEvents: WidgetAttribute
pub const WATransparentForMouseEvents: WidgetAttribute
When enabled, this attribute disables the delivery of mouse events to the widget and its children. Mouse events are delivered to other widgets as if the widget and its children were not present in the widget hierarchy; mouse clicks and other events effectively “pass through” them. This attribute is disabled by default. (C++ enum variant: WA_TransparentForMouseEvents = 51
)
Sourcepub const WAPaintUnclipped: WidgetAttribute
pub const WAPaintUnclipped: WidgetAttribute
Makes all painters operating on this widget unclipped. Children of this widget or other widgets in front of it do not clip the area the painter can paint on. This flag is only supported for widgets with the WA_PaintOnScreen flag set. The preferred way to do this in a cross platform way is to create a transparent widget that lies in front of the other widgets. (C++ enum variant: WA_PaintUnclipped = 52
)
Sourcepub const WASetWindowIcon: WidgetAttribute
pub const WASetWindowIcon: WidgetAttribute
C++ enum variant: WA_SetWindowIcon = 53
Sourcepub const WANoMouseReplay: WidgetAttribute
pub const WANoMouseReplay: WidgetAttribute
Used for pop-up widgets. Indicates that the most recent mouse press event should not be replayed when the pop-up widget closes. The flag is set by the widget’s author and cleared by the Qt kernel every time the widget receives a new mouse event. (C++ enum variant: WA_NoMouseReplay = 54
)
Sourcepub const WADeleteOnClose: WidgetAttribute
pub const WADeleteOnClose: WidgetAttribute
Makes Qt delete this widget when the widget has accepted the close event (see QWidget::closeEvent()). (C++ enum variant: WA_DeleteOnClose = 55
)
Sourcepub const WARightToLeft: WidgetAttribute
pub const WARightToLeft: WidgetAttribute
Indicates that the layout direction for the widget is right to left. (C++ enum variant: WA_RightToLeft = 56
)
Sourcepub const WASetLayoutDirection: WidgetAttribute
pub const WASetLayoutDirection: WidgetAttribute
C++ enum variant: WA_SetLayoutDirection = 57
Sourcepub const WANoChildEventsForParent: WidgetAttribute
pub const WANoChildEventsForParent: WidgetAttribute
Indicates that the widget does not want ChildAdded or ChildRemoved events sent to its parent. This is rarely necessary but can help to avoid automatic insertion widgets like splitters and layouts. This is set by a widget’s author. (C++ enum variant: WA_NoChildEventsForParent = 58
)
Sourcepub const WAForceUpdatesDisabled: WidgetAttribute
pub const WAForceUpdatesDisabled: WidgetAttribute
Indicates that updates are explicitly disabled for the widget; i.e. it will remain disabled even when all its ancestors are set to the updates-enabled state. This implies WA_UpdatesDisabled. This is set/cleared by QWidget::setUpdatesEnabled(). (C++ enum variant: WA_ForceUpdatesDisabled = 59
)
Sourcepub const WAWStateCreated: WidgetAttribute
pub const WAWStateCreated: WidgetAttribute
C++ enum variant: WA_WState_Created = 60
Sourcepub const WAWStateCompressKeys: WidgetAttribute
pub const WAWStateCompressKeys: WidgetAttribute
C++ enum variant: WA_WState_CompressKeys = 61
Sourcepub const WAWStateInPaintEvent: WidgetAttribute
pub const WAWStateInPaintEvent: WidgetAttribute
C++ enum variant: WA_WState_InPaintEvent = 62
Sourcepub const WAWStateReparented: WidgetAttribute
pub const WAWStateReparented: WidgetAttribute
C++ enum variant: WA_WState_Reparented = 63
Sourcepub const WAWStateConfigPending: WidgetAttribute
pub const WAWStateConfigPending: WidgetAttribute
C++ enum variant: WA_WState_ConfigPending = 64
Sourcepub const WAWStatePolished: WidgetAttribute
pub const WAWStatePolished: WidgetAttribute
C++ enum variant: WA_WState_Polished = 66
Sourcepub const WAWStateDND: WidgetAttribute
pub const WAWStateDND: WidgetAttribute
C++ enum variant: WA_WState_DND = 67
Sourcepub const WAWStateOwnSizePolicy: WidgetAttribute
pub const WAWStateOwnSizePolicy: WidgetAttribute
C++ enum variant: WA_WState_OwnSizePolicy = 68
Sourcepub const WAWStateExplicitShowHide: WidgetAttribute
pub const WAWStateExplicitShowHide: WidgetAttribute
C++ enum variant: WA_WState_ExplicitShowHide = 69
Sourcepub const WAShowModal: WidgetAttribute
pub const WAShowModal: WidgetAttribute
This attribute has been deprecated. Use QWidget::windowModality instead. (C++ enum variant: WA_ShowModal = 70
)
Sourcepub const WAMouseNoMask: WidgetAttribute
pub const WAMouseNoMask: WidgetAttribute
Makes the widget receive mouse events for the entire widget regardless of the currently set mask, overriding QWidget::setMask(). This is not applicable for top-level windows. (C++ enum variant: WA_MouseNoMask = 71
)
Sourcepub const WAGroupLeader: WidgetAttribute
pub const WAGroupLeader: WidgetAttribute
This attribute has been deprecated. Use QWidget::windowModality instead. (C++ enum variant: WA_GroupLeader = 72
)
Sourcepub const WANoMousePropagation: WidgetAttribute
pub const WANoMousePropagation: WidgetAttribute
Prohibits mouse events from being propagated to the widget’s parent. This attribute is disabled by default. (C++ enum variant: WA_NoMousePropagation = 73
)
Sourcepub const WAHover: WidgetAttribute
pub const WAHover: WidgetAttribute
Forces Qt to generate paint events when the mouse enters or leaves the widget. This feature is typically used when implementing custom styles; see the Styles example for details. (C++ enum variant: WA_Hover = 74
)
Sourcepub const WAInputMethodTransparent: WidgetAttribute
pub const WAInputMethodTransparent: WidgetAttribute
C++ enum variant: WA_InputMethodTransparent = 75
Sourcepub const WAQuitOnClose: WidgetAttribute
pub const WAQuitOnClose: WidgetAttribute
Makes Qt quit the application when the last widget with the attribute set has accepted closeEvent(). This behavior can be modified with the QApplication::quitOnLastWindowClosed property. By default this attribute is set for all widgets of type Qt::Window. (C++ enum variant: WA_QuitOnClose = 76
)
Sourcepub const WAKeyboardFocusChange: WidgetAttribute
pub const WAKeyboardFocusChange: WidgetAttribute
Set on a toplevel window when the users changes focus with the keyboard (tab, backtab, or shortcut). (C++ enum variant: WA_KeyboardFocusChange = 77
)
Sourcepub const WAAcceptDrops: WidgetAttribute
pub const WAAcceptDrops: WidgetAttribute
Allows data from drag and drop operations to be dropped onto the widget (see QWidget::setAcceptDrops()). (C++ enum variant: WA_AcceptDrops = 78
)
Sourcepub const WADropSiteRegistered: WidgetAttribute
pub const WADropSiteRegistered: WidgetAttribute
C++ enum variant: WA_DropSiteRegistered = 79
Sourcepub const WAForceAcceptDrops: WidgetAttribute
pub const WAForceAcceptDrops: WidgetAttribute
C++ enum variant: WA_ForceAcceptDrops = 79
Sourcepub const WAWindowPropagation: WidgetAttribute
pub const WAWindowPropagation: WidgetAttribute
Makes a toplevel window inherit font, palette and locale from its parent. (C++ enum variant: WA_WindowPropagation = 80
)
Sourcepub const WANoX11EventCompression: WidgetAttribute
pub const WANoX11EventCompression: WidgetAttribute
C++ enum variant: WA_NoX11EventCompression = 81
Sourcepub const WATintedBackground: WidgetAttribute
pub const WATintedBackground: WidgetAttribute
C++ enum variant: WA_TintedBackground = 82
Sourcepub const WAX11OpenGLOverlay: WidgetAttribute
pub const WAX11OpenGLOverlay: WidgetAttribute
C++ enum variant: WA_X11OpenGLOverlay = 83
Sourcepub const WAAlwaysShowToolTips: WidgetAttribute
pub const WAAlwaysShowToolTips: WidgetAttribute
Enables tooltips for inactive windows. (C++ enum variant: WA_AlwaysShowToolTips = 84
)
Sourcepub const WAMacOpaqueSizeGrip: WidgetAttribute
pub const WAMacOpaqueSizeGrip: WidgetAttribute
Indicates that the native Carbon size grip should be opaque instead of transparent (the default). This attribute is only applicable to macOS and is set by the widget’s author. (C++ enum variant: WA_MacOpaqueSizeGrip = 85
)
Sourcepub const WASetStyle: WidgetAttribute
pub const WASetStyle: WidgetAttribute
Indicates that the widget has a style of its own. This flag is set or cleared by QWidget::setStyle(). (C++ enum variant: WA_SetStyle = 86
)
Sourcepub const WASetLocale: WidgetAttribute
pub const WASetLocale: WidgetAttribute
Indicates the locale should be taken into consideration in the widget. (C++ enum variant: WA_SetLocale = 87
)
Sourcepub const WAMacShowFocusRect: WidgetAttribute
pub const WAMacShowFocusRect: WidgetAttribute
Indicates that this widget should get a QFocusFrame around it. Some widgets draw their own focus halo regardless of this attribute. Not that the QWidget::focusPolicy also plays the main role in whether something is given focus or not, this only controls whether or not this gets the focus frame. This attribute is only applicable to macOS. (C++ enum variant: WA_MacShowFocusRect = 88
)
Sourcepub const WAMacNormalSize: WidgetAttribute
pub const WAMacNormalSize: WidgetAttribute
Sourcepub const WAMacSmallSize: WidgetAttribute
pub const WAMacSmallSize: WidgetAttribute
Sourcepub const WAMacMiniSize: WidgetAttribute
pub const WAMacMiniSize: WidgetAttribute
Sourcepub const WALayoutUsesWidgetRect: WidgetAttribute
pub const WALayoutUsesWidgetRect: WidgetAttribute
Ignore the layout item rect from the style when laying out this widget with QLayout. (C++ enum variant: WA_LayoutUsesWidgetRect = 92
)
Sourcepub const WAStyledBackground: WidgetAttribute
pub const WAStyledBackground: WidgetAttribute
Indicates the widget should be drawn using a styled background. (C++ enum variant: WA_StyledBackground = 93
)
Sourcepub const WAMSWindowsUseDirect3D: WidgetAttribute
pub const WAMSWindowsUseDirect3D: WidgetAttribute
This value is obsolete and has no effect. (C++ enum variant: WA_MSWindowsUseDirect3D = 94
)
Sourcepub const WACanHostQMdiSubWindowTitleBar: WidgetAttribute
pub const WACanHostQMdiSubWindowTitleBar: WidgetAttribute
C++ enum variant: WA_CanHostQMdiSubWindowTitleBar = 95
Sourcepub const WAMacAlwaysShowToolWindow: WidgetAttribute
pub const WAMacAlwaysShowToolWindow: WidgetAttribute
On macOS, show the tool window even when the application is not active. By default, all tool windows are hidden when the application is inactive. (C++ enum variant: WA_MacAlwaysShowToolWindow = 96
)
Sourcepub const WAStyleSheet: WidgetAttribute
pub const WAStyleSheet: WidgetAttribute
Indicates that the widget is styled using a style sheet. (C++ enum variant: WA_StyleSheet = 97
)
Sourcepub const WAShowWithoutActivating: WidgetAttribute
pub const WAShowWithoutActivating: WidgetAttribute
Show the widget without making it active. (C++ enum variant: WA_ShowWithoutActivating = 98
)
Sourcepub const WAX11BypassTransientForHint: WidgetAttribute
pub const WAX11BypassTransientForHint: WidgetAttribute
C++ enum variant: WA_X11BypassTransientForHint = 99
Sourcepub const WANativeWindow: WidgetAttribute
pub const WANativeWindow: WidgetAttribute
Indicates that a native window is created for the widget. Enabling this flag will also force a native window for the widget’s ancestors unless Qt::WA_DontCreateNativeAncestors is set. (C++ enum variant: WA_NativeWindow = 100
)
Sourcepub const WADontCreateNativeAncestors: WidgetAttribute
pub const WADontCreateNativeAncestors: WidgetAttribute
Indicates that the widget’s ancestors are kept non-native even though the widget itself is native. (C++ enum variant: WA_DontCreateNativeAncestors = 101
)
Sourcepub const WAMacVariableSize: WidgetAttribute
pub const WAMacVariableSize: WidgetAttribute
Indicates the widget can choose between alternative sizes for widgets to avoid clipping. This attribute is only applicable to macOS. (C++ enum variant: WA_MacVariableSize = 102
)
Sourcepub const WADontShowOnScreen: WidgetAttribute
pub const WADontShowOnScreen: WidgetAttribute
Indicates that the widget is hidden or is not a part of the viewable Desktop. (C++ enum variant: WA_DontShowOnScreen = 103
)
Sourcepub const WAX11NetWmWindowTypeDesktop: WidgetAttribute
pub const WAX11NetWmWindowTypeDesktop: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_DESKTOP to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. (C++ enum variant: WA_X11NetWmWindowTypeDesktop = 104
)
Sourcepub const WAX11NetWmWindowTypeDock: WidgetAttribute
pub const WAX11NetWmWindowTypeDock: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_DOCK to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. (C++ enum variant: WA_X11NetWmWindowTypeDock = 105
)
Sourcepub const WAX11NetWmWindowTypeToolBar: WidgetAttribute
pub const WAX11NetWmWindowTypeToolBar: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_TOOLBAR to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for QToolBar. (C++ enum variant: WA_X11NetWmWindowTypeToolBar = 106
)
Sourcepub const WAX11NetWmWindowTypeMenu: WidgetAttribute
pub const WAX11NetWmWindowTypeMenu: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_MENU to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for QMenu when torn-off. (C++ enum variant: WA_X11NetWmWindowTypeMenu = 107
)
Sourcepub const WAX11NetWmWindowTypeUtility: WidgetAttribute
pub const WAX11NetWmWindowTypeUtility: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_UTILITY to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for the Qt::Tool window type. (C++ enum variant: WA_X11NetWmWindowTypeUtility = 108
)
Sourcepub const WAX11NetWmWindowTypeSplash: WidgetAttribute
pub const WAX11NetWmWindowTypeSplash: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_SPLASH to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for the Qt::SplashScreen window type. (C++ enum variant: WA_X11NetWmWindowTypeSplash = 109
)
Sourcepub const WAX11NetWmWindowTypeDialog: WidgetAttribute
pub const WAX11NetWmWindowTypeDialog: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_DIALOG to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for the Qt::Dialog and Qt::Sheet window types. (C++ enum variant: WA_X11NetWmWindowTypeDialog = 110
)
Sourcepub const WAX11NetWmWindowTypeDropDownMenu: WidgetAttribute
pub const WAX11NetWmWindowTypeDropDownMenu: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_DROPDOWN_MENU to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for QMenu objects added to a QMenuBar. (C++ enum variant: WA_X11NetWmWindowTypeDropDownMenu = 111
)
Sourcepub const WAX11NetWmWindowTypePopupMenu: WidgetAttribute
pub const WAX11NetWmWindowTypePopupMenu: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_POPUP_MENU to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for QMenu. (C++ enum variant: WA_X11NetWmWindowTypePopupMenu = 112
)
Sourcepub const WAX11NetWmWindowTypeToolTip: WidgetAttribute
pub const WAX11NetWmWindowTypeToolTip: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_TOOLTIP to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for the Qt::ToolTip window type. (C++ enum variant: WA_X11NetWmWindowTypeToolTip = 113
)
Sourcepub const WAX11NetWmWindowTypeNotification: WidgetAttribute
pub const WAX11NetWmWindowTypeNotification: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_NOTIFICATION to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. (C++ enum variant: WA_X11NetWmWindowTypeNotification = 114
)
Sourcepub const WAX11NetWmWindowTypeCombo: WidgetAttribute
pub const WAX11NetWmWindowTypeCombo: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_COMBO to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute for the QComboBox pop-up. (C++ enum variant: WA_X11NetWmWindowTypeCombo = 115
)
Sourcepub const WAX11NetWmWindowTypeDND: WidgetAttribute
pub const WAX11NetWmWindowTypeDND: WidgetAttribute
Adds _NET_WM_WINDOW_TYPE_DND to the window’s _NET_WM_WINDOW_TYPE X11 window property. See http://standards.freedesktop.org/wm-spec/ for more details. This attribute has no effect on non-X11 platforms. Note: Qt automatically sets this attribute on the feedback widget used during a drag. (C++ enum variant: WA_X11NetWmWindowTypeDND = 116
)
Sourcepub const WAMacFrameworkScaled: WidgetAttribute
pub const WAMacFrameworkScaled: WidgetAttribute
Enables resolution independence aware mode on Mac when using Carbon. This attribute has no effect on Cocoa. The attribute is off by default and can be enabled on a per-window basis. (C++ enum variant: WA_MacFrameworkScaled = 117
)
Sourcepub const WASetWindowModality: WidgetAttribute
pub const WASetWindowModality: WidgetAttribute
C++ enum variant: WA_SetWindowModality = 118
Sourcepub const WAWStateWindowOpacitySet: WidgetAttribute
pub const WAWStateWindowOpacitySet: WidgetAttribute
C++ enum variant: WA_WState_WindowOpacitySet = 119
Sourcepub const WATranslucentBackground: WidgetAttribute
pub const WATranslucentBackground: WidgetAttribute
Indicates that the widget should have a translucent background, i.e., any non-opaque regions of the widgets will be translucent because the widget will have an alpha channel. Setting this flag causes WA_NoSystemBackground to be set. On Windows the widget also needs the Qt::FramelessWindowHint window flag to be set. This flag is set or cleared by the widget’s author. (C++ enum variant: WA_TranslucentBackground = 120
)
Sourcepub const WAAcceptTouchEvents: WidgetAttribute
pub const WAAcceptTouchEvents: WidgetAttribute
Allows touch events (see QTouchEvent) to be sent to the widget. Must be set on all widgets that can handle touch events. Without this attribute set, events from a touch device will be sent as mouse events. (C++ enum variant: WA_AcceptTouchEvents = 121
)
Sourcepub const WAWStateAcceptedTouchBeginEvent: WidgetAttribute
pub const WAWStateAcceptedTouchBeginEvent: WidgetAttribute
C++ enum variant: WA_WState_AcceptedTouchBeginEvent = 122
Sourcepub const WATouchPadAcceptSingleTouchEvents: WidgetAttribute
pub const WATouchPadAcceptSingleTouchEvents: WidgetAttribute
Allows touchpad single touch events to be sent to the widget. (C++ enum variant: WA_TouchPadAcceptSingleTouchEvents = 123
)
Sourcepub const WAX11DoNotAcceptFocus: WidgetAttribute
pub const WAX11DoNotAcceptFocus: WidgetAttribute
Asks the window manager to not give focus to this top level window. This attribute has no effect on non-X11 platforms. (C++ enum variant: WA_X11DoNotAcceptFocus = 126
)
Sourcepub const WAMacNoShadow: WidgetAttribute
pub const WAMacNoShadow: WidgetAttribute
C++ enum variant: WA_MacNoShadow = 127
Sourcepub const WAAlwaysStackOnTop: WidgetAttribute
pub const WAAlwaysStackOnTop: WidgetAttribute
Since Qt 5.4, this value forces QOpenGLWidget and QQuickWidget to be drawn last, on top of other widgets. Ignored for other type of widgets. Setting this attribute breaks the stacking order, but allows having a semi-transparent OpenGL widget with other widgets visible underneath. It is strongly recommended to call update() on the widget’s top-level window after enabling or disabling this attribute. (C++ enum variant: WA_AlwaysStackOnTop = 128
)
Sourcepub const WATabletTracking: WidgetAttribute
pub const WATabletTracking: WidgetAttribute
Indicates that the widget has tablet tracking enabled. See QWidget::tabletTracking. (C++ enum variant: WA_TabletTracking = 129
)
Sourcepub const WAContentsMarginsRespectsSafeArea: WidgetAttribute
pub const WAContentsMarginsRespectsSafeArea: WidgetAttribute
A QWidget respects the safe area margins of a window by incorporating the margins into its contents’ margins by default. This means, that a QLayout will use the content area of a widget for its layout, unless the Qt::WA_LayoutOnEntireRect attribute is set. This along with a contents margin of 0 can be used on the actual layout, to allow for example a background image to underlay the status bar and other system areas on an iOS device, while still allowing child widgets of that background to be inset based on the safe area. (C++ enum variant: WA_ContentsMarginsRespectsSafeArea = 130
)
Sourcepub const WAAttributeCount: WidgetAttribute
pub const WAAttributeCount: WidgetAttribute
C++ enum variant: WA_AttributeCount = 131
Sourcepub const WAStyleSheetTarget: WidgetAttribute
pub const WAStyleSheetTarget: WidgetAttribute
Indicates that the widget appearance was modified by a style sheet. WA_StyleSheet will also be set. (C++ enum variant: WA_StyleSheetTarget = 131
)
Sourcepub const WAAttributeCount2: WidgetAttribute
pub const WAAttributeCount2: WidgetAttribute
C++ enum variant: WA_AttributeCount = 132
Trait Implementations§
Source§impl Clone for WidgetAttribute
impl Clone for WidgetAttribute
Source§fn clone(&self) -> WidgetAttribute
fn clone(&self) -> WidgetAttribute
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more