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.

C++ documentation:

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

source

pub fn to_int(&self) -> c_int

source§

impl WidgetAttribute

source

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)

source

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)

source

pub const WAMouseTracking: WidgetAttribute = _

Indicates that the widget has mouse tracking enabled. See QWidget::mouseTracking. (C++ enum variant: WA_MouseTracking = 2)

source

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)

source

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)

source

pub const WANoBackground: WidgetAttribute = _

This value is obsolete. Use WA_OpaquePaintEvent instead. (C++ enum variant: WA_NoBackground = 4)

source

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)

source

pub const WALaidOut: WidgetAttribute = _

C++ enum variant: WA_LaidOut = 7

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

pub const WAWStateVisible: WidgetAttribute = _

C++ enum variant: WA_WState_Visible = 15

source

pub const WAWStateHidden: WidgetAttribute = _

C++ enum variant: WA_WState_Hidden = 16

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

pub const WAPendingUpdate: WidgetAttribute = _

C++ enum variant: WA_PendingUpdate = 44

source

pub const WAInvalidSize: WidgetAttribute = _

C++ enum variant: WA_InvalidSize = 45

source

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)

source

pub const WAMacMetalStyle: WidgetAttribute = _

C++ enum variant: WA_MacMetalStyle = 46

source

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)

source

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)

source

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)

source

pub const WAGrabbedShortcut: WidgetAttribute = _

C++ enum variant: WA_GrabbedShortcut = 50

source

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)

source

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)

source

pub const WASetWindowIcon: WidgetAttribute = _

C++ enum variant: WA_SetWindowIcon = 53

source

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)

source

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)

source

pub const WARightToLeft: WidgetAttribute = _

Indicates that the layout direction for the widget is right to left. (C++ enum variant: WA_RightToLeft = 56)

source

pub const WASetLayoutDirection: WidgetAttribute = _

C++ enum variant: WA_SetLayoutDirection = 57

source

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)

source

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)

source

pub const WAWStateCreated: WidgetAttribute = _

C++ enum variant: WA_WState_Created = 60

source

pub const WAWStateCompressKeys: WidgetAttribute = _

C++ enum variant: WA_WState_CompressKeys = 61

source

pub const WAWStateInPaintEvent: WidgetAttribute = _

C++ enum variant: WA_WState_InPaintEvent = 62

source

pub const WAWStateReparented: WidgetAttribute = _

C++ enum variant: WA_WState_Reparented = 63

source

pub const WAWStateConfigPending: WidgetAttribute = _

C++ enum variant: WA_WState_ConfigPending = 64

source

pub const WAWStatePolished: WidgetAttribute = _

C++ enum variant: WA_WState_Polished = 66

source

pub const WAWStateDND: WidgetAttribute = _

C++ enum variant: WA_WState_DND = 67

source

pub const WAWStateOwnSizePolicy: WidgetAttribute = _

C++ enum variant: WA_WState_OwnSizePolicy = 68

source

pub const WAWStateExplicitShowHide: WidgetAttribute = _

C++ enum variant: WA_WState_ExplicitShowHide = 69

source

pub const WAShowModal: WidgetAttribute = _

This attribute has been deprecated. Use QWidget::windowModality instead. (C++ enum variant: WA_ShowModal = 70)

source

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)

source

pub const WAGroupLeader: WidgetAttribute = _

This attribute has been deprecated. Use QWidget::windowModality instead. (C++ enum variant: WA_GroupLeader = 72)

source

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)

source

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)

source

pub const WAInputMethodTransparent: WidgetAttribute = _

C++ enum variant: WA_InputMethodTransparent = 75

source

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)

source

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)

source

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)

source

pub const WADropSiteRegistered: WidgetAttribute = _

C++ enum variant: WA_DropSiteRegistered = 79

source

pub const WAForceAcceptDrops: WidgetAttribute = _

C++ enum variant: WA_ForceAcceptDrops = 79

source

pub const WAWindowPropagation: WidgetAttribute = _

Makes a toplevel window inherit font, palette and locale from its parent. (C++ enum variant: WA_WindowPropagation = 80)

source

pub const WANoX11EventCompression: WidgetAttribute = _

C++ enum variant: WA_NoX11EventCompression = 81

source

pub const WATintedBackground: WidgetAttribute = _

C++ enum variant: WA_TintedBackground = 82

source

pub const WAX11OpenGLOverlay: WidgetAttribute = _

C++ enum variant: WA_X11OpenGLOverlay = 83

source

pub const WAAlwaysShowToolTips: WidgetAttribute = _

Enables tooltips for inactive windows. (C++ enum variant: WA_AlwaysShowToolTips = 84)

source

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)

source

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)

source

pub const WASetLocale: WidgetAttribute = _

Indicates the locale should be taken into consideration in the widget. (C++ enum variant: WA_SetLocale = 87)

source

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)

source

pub const WAMacNormalSize: WidgetAttribute = _

Indicates the widget should have the normal size for widgets in macOS. This attribute is only applicable to macOS. (C++ enum variant: WA_MacNormalSize = 89)

source

pub const WAMacSmallSize: WidgetAttribute = _

Indicates the widget should have the small size for widgets in macOS. This attribute is only applicable to macOS. (C++ enum variant: WA_MacSmallSize = 90)

source

pub const WAMacMiniSize: WidgetAttribute = _

Indicates the widget should have the mini size for widgets in macOS. This attribute is only applicable to macOS. (C++ enum variant: WA_MacMiniSize = 91)

source

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)

source

pub const WAStyledBackground: WidgetAttribute = _

Indicates the widget should be drawn using a styled background. (C++ enum variant: WA_StyledBackground = 93)

source

pub const WAMSWindowsUseDirect3D: WidgetAttribute = _

This value is obsolete and has no effect. (C++ enum variant: WA_MSWindowsUseDirect3D = 94)

source

pub const WACanHostQMdiSubWindowTitleBar: WidgetAttribute = _

C++ enum variant: WA_CanHostQMdiSubWindowTitleBar = 95

source

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)

source

pub const WAStyleSheet: WidgetAttribute = _

Indicates that the widget is styled using a style sheet. (C++ enum variant: WA_StyleSheet = 97)

source

pub const WAShowWithoutActivating: WidgetAttribute = _

Show the widget without making it active. (C++ enum variant: WA_ShowWithoutActivating = 98)

source

pub const WAX11BypassTransientForHint: WidgetAttribute = _

C++ enum variant: WA_X11BypassTransientForHint = 99

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

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)

source

pub const WASetWindowModality: WidgetAttribute = _

C++ enum variant: WA_SetWindowModality = 118

source

pub const WAWStateWindowOpacitySet: WidgetAttribute = _

C++ enum variant: WA_WState_WindowOpacitySet = 119

source

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)

source

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)

source

pub const WAWStateAcceptedTouchBeginEvent: WidgetAttribute = _

C++ enum variant: WA_WState_AcceptedTouchBeginEvent = 122

source

pub const WATouchPadAcceptSingleTouchEvents: WidgetAttribute = _

Allows touchpad single touch events to be sent to the widget. (C++ enum variant: WA_TouchPadAcceptSingleTouchEvents = 123)

source

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)

source

pub const WAMacNoShadow: WidgetAttribute = _

C++ enum variant: WA_MacNoShadow = 127

source

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)

source

pub const WATabletTracking: WidgetAttribute = _

Indicates that the widget has tablet tracking enabled. See QWidget::tabletTracking. (C++ enum variant: WA_TabletTracking = 129)

source

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)

source

pub const WAAttributeCount: WidgetAttribute = _

C++ enum variant: WA_AttributeCount = 131

source

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)

source

pub const WAAttributeCount2: WidgetAttribute = _

C++ enum variant: WA_AttributeCount = 132

Trait Implementations§

source§

impl Clone for WidgetAttribute

source§

fn clone(&self) -> WidgetAttribute

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for WidgetAttribute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<WidgetAttribute> for c_int

source§

fn from(value: WidgetAttribute) -> Self

Converts to this type from the input type.
source§

impl From<i32> for WidgetAttribute

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for WidgetAttribute

source§

fn eq(&self, other: &WidgetAttribute) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for WidgetAttribute

source§

impl Eq for WidgetAttribute

source§

impl StructuralEq for WidgetAttribute

source§

impl StructuralPartialEq for WidgetAttribute

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.