[][src]Struct qt_core::WidgetAttribute

#[repr(transparent)]
pub struct 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.

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.

Methods

impl WidgetAttribute[src]

pub fn to_int(&self) -> c_int[src]

impl WidgetAttribute[src]

pub const WADisabled: WidgetAttribute[src]

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)

pub const WAUnderMouse: WidgetAttribute[src]

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)

pub const WAMouseTracking: WidgetAttribute[src]

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

pub const WAContentsPropagated: WidgetAttribute[src]

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)

pub const WAOpaquePaintEvent: WidgetAttribute[src]

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)

pub const WANoBackground: WidgetAttribute[src]

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

pub const WAStaticContents: WidgetAttribute[src]

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)

pub const WALaidOut: WidgetAttribute[src]

C++ enum variant: WA_LaidOut = 7

pub const WAPaintOnScreen: WidgetAttribute[src]

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)

pub const WANoSystemBackground: WidgetAttribute[src]

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)

pub const WAUpdatesDisabled: WidgetAttribute[src]

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)

pub const WAMapped: WidgetAttribute[src]

Indicates that the widget is mapped on screen. This is set/cleared by the Qt kernel. (C++ enum variant: WA_Mapped = 11)

pub const WAMacNoClickThrough: WidgetAttribute[src]

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)

pub const WAInputMethodEnabled: WidgetAttribute[src]

Enables input methods for Asian languages. Must be set when creating custom text editing widgets. (C++ enum variant: WA_InputMethodEnabled = 14)

pub const WAWStateVisible: WidgetAttribute[src]

C++ enum variant: WA_WState_Visible = 15

pub const WAWStateHidden: WidgetAttribute[src]

C++ enum variant: WA_WState_Hidden = 16

pub const WAForceDisabled: WidgetAttribute[src]

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)

pub const WAKeyCompression: WidgetAttribute[src]

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)

pub const WAPendingMoveEvent: WidgetAttribute[src]

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)

pub const WAPendingResizeEvent: WidgetAttribute[src]

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)

pub const WASetPalette: WidgetAttribute[src]

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)

pub const WASetFont: WidgetAttribute[src]

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)

pub const WASetCursor: WidgetAttribute[src]

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)

pub const WANoChildEventsFromChildren: WidgetAttribute[src]

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)

pub const WAWindowModified: WidgetAttribute[src]

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)

pub const WAResized: WidgetAttribute[src]

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)

pub const WAMoved: WidgetAttribute[src]

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)

pub const WAPendingUpdate: WidgetAttribute[src]

C++ enum variant: WA_PendingUpdate = 44

pub const WAInvalidSize: WidgetAttribute[src]

C++ enum variant: WA_InvalidSize = 45

pub const WAMacBrushedMetal: WidgetAttribute[src]

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)

pub const WAMacMetalStyle: WidgetAttribute[src]

C++ enum variant: WA_MacMetalStyle = 46

pub const WACustomWhatsThis: WidgetAttribute[src]

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)

pub const WALayoutOnEntireRect: WidgetAttribute[src]

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)

pub const WAOutsideWSRange: WidgetAttribute[src]

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)

pub const WAGrabbedShortcut: WidgetAttribute[src]

C++ enum variant: WA_GrabbedShortcut = 50

pub const WATransparentForMouseEvents: WidgetAttribute[src]

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)

pub const WAPaintUnclipped: WidgetAttribute[src]

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)

pub const WASetWindowIcon: WidgetAttribute[src]

C++ enum variant: WA_SetWindowIcon = 53

pub const WANoMouseReplay: WidgetAttribute[src]

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)

pub const WADeleteOnClose: WidgetAttribute[src]

Makes Qt delete this widget when the widget has accepted the close event (see QWidget::closeEvent()). (C++ enum variant: WA_DeleteOnClose = 55)

pub const WARightToLeft: WidgetAttribute[src]

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

pub const WASetLayoutDirection: WidgetAttribute[src]

C++ enum variant: WA_SetLayoutDirection = 57

pub const WANoChildEventsForParent: WidgetAttribute[src]

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)

pub const WAForceUpdatesDisabled: WidgetAttribute[src]

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)

pub const WAWStateCreated: WidgetAttribute[src]

C++ enum variant: WA_WState_Created = 60

pub const WAWStateCompressKeys: WidgetAttribute[src]

C++ enum variant: WA_WState_CompressKeys = 61

pub const WAWStateInPaintEvent: WidgetAttribute[src]

C++ enum variant: WA_WState_InPaintEvent = 62

pub const WAWStateReparented: WidgetAttribute[src]

C++ enum variant: WA_WState_Reparented = 63

pub const WAWStateConfigPending: WidgetAttribute[src]

C++ enum variant: WA_WState_ConfigPending = 64

pub const WAWStatePolished: WidgetAttribute[src]

C++ enum variant: WA_WState_Polished = 66

pub const WAWStateDND: WidgetAttribute[src]

C++ enum variant: WA_WState_DND = 67

pub const WAWStateOwnSizePolicy: WidgetAttribute[src]

C++ enum variant: WA_WState_OwnSizePolicy = 68

pub const WAWStateExplicitShowHide: WidgetAttribute[src]

C++ enum variant: WA_WState_ExplicitShowHide = 69

pub const WAShowModal: WidgetAttribute[src]

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

pub const WAMouseNoMask: WidgetAttribute[src]

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)

pub const WAGroupLeader: WidgetAttribute[src]

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

pub const WANoMousePropagation: WidgetAttribute[src]

Prohibits mouse events from being propagated to the widget's parent. This attribute is disabled by default. (C++ enum variant: WA_NoMousePropagation = 73)

pub const WAHover: WidgetAttribute[src]

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)

pub const WAInputMethodTransparent: WidgetAttribute[src]

C++ enum variant: WA_InputMethodTransparent = 75

pub const WAQuitOnClose: WidgetAttribute[src]

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)

pub const WAKeyboardFocusChange: WidgetAttribute[src]

Set on a toplevel window when the users changes focus with the keyboard (tab, backtab, or shortcut). (C++ enum variant: WA_KeyboardFocusChange = 77)

pub const WAAcceptDrops: WidgetAttribute[src]

Allows data from drag and drop operations to be dropped onto the widget (see QWidget::setAcceptDrops()). (C++ enum variant: WA_AcceptDrops = 78)

pub const WADropSiteRegistered: WidgetAttribute[src]

C++ enum variant: WA_DropSiteRegistered = 79

pub const WAForceAcceptDrops: WidgetAttribute[src]

C++ enum variant: WA_ForceAcceptDrops = 79

pub const WAWindowPropagation: WidgetAttribute[src]

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

pub const WANoX11EventCompression: WidgetAttribute[src]

C++ enum variant: WA_NoX11EventCompression = 81

pub const WATintedBackground: WidgetAttribute[src]

C++ enum variant: WA_TintedBackground = 82

pub const WAX11OpenGLOverlay: WidgetAttribute[src]

C++ enum variant: WA_X11OpenGLOverlay = 83

pub const WAAlwaysShowToolTips: WidgetAttribute[src]

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

pub const WAMacOpaqueSizeGrip: WidgetAttribute[src]

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)

pub const WASetStyle: WidgetAttribute[src]

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)

pub const WASetLocale: WidgetAttribute[src]

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

pub const WAMacShowFocusRect: WidgetAttribute[src]

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)

pub const WAMacNormalSize: WidgetAttribute[src]

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)

pub const WAMacSmallSize: WidgetAttribute[src]

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)

pub const WAMacMiniSize: WidgetAttribute[src]

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)

pub const WALayoutUsesWidgetRect: WidgetAttribute[src]

Ignore the layout item rect from the style when laying out this widget with QLayout. (C++ enum variant: WA_LayoutUsesWidgetRect = 92)

pub const WAStyledBackground: WidgetAttribute[src]

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

pub const WAMSWindowsUseDirect3D: WidgetAttribute[src]

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

pub const WACanHostQMdiSubWindowTitleBar: WidgetAttribute[src]

C++ enum variant: WA_CanHostQMdiSubWindowTitleBar = 95

pub const WAMacAlwaysShowToolWindow: WidgetAttribute[src]

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)

pub const WAStyleSheet: WidgetAttribute[src]

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

pub const WAShowWithoutActivating: WidgetAttribute[src]

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

pub const WAX11BypassTransientForHint: WidgetAttribute[src]

C++ enum variant: WA_X11BypassTransientForHint = 99

pub const WANativeWindow: WidgetAttribute[src]

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)

pub const WADontCreateNativeAncestors: WidgetAttribute[src]

Indicates that the widget's ancestors are kept non-native even though the widget itself is native. (C++ enum variant: WA_DontCreateNativeAncestors = 101)

pub const WAMacVariableSize: WidgetAttribute[src]

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)

pub const WADontShowOnScreen: WidgetAttribute[src]

Indicates that the widget is hidden or is not a part of the viewable Desktop. (C++ enum variant: WA_DontShowOnScreen = 103)

pub const WAX11NetWmWindowTypeDesktop: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeDock: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeToolBar: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeMenu: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeUtility: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeSplash: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeDialog: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeDropDownMenu: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypePopupMenu: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeToolTip: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeNotification: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeCombo: WidgetAttribute[src]

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)

pub const WAX11NetWmWindowTypeDND: WidgetAttribute[src]

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)

pub const WAMacFrameworkScaled: WidgetAttribute[src]

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)

pub const WASetWindowModality: WidgetAttribute[src]

C++ enum variant: WA_SetWindowModality = 118

pub const WAWStateWindowOpacitySet: WidgetAttribute[src]

C++ enum variant: WA_WState_WindowOpacitySet = 119

pub const WATranslucentBackground: WidgetAttribute[src]

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)

pub const WAAcceptTouchEvents: WidgetAttribute[src]

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)

pub const WAWStateAcceptedTouchBeginEvent: WidgetAttribute[src]

C++ enum variant: WA_WState_AcceptedTouchBeginEvent = 122

pub const WATouchPadAcceptSingleTouchEvents: WidgetAttribute[src]

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

pub const WAX11DoNotAcceptFocus: WidgetAttribute[src]

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)

pub const WAMacNoShadow: WidgetAttribute[src]

C++ enum variant: WA_MacNoShadow = 127

pub const WAAlwaysStackOnTop: WidgetAttribute[src]

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)

pub const WATabletTracking: WidgetAttribute[src]

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

pub const WAContentsMarginsRespectsSafeArea: WidgetAttribute[src]

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)

pub const WAAttributeCount: WidgetAttribute[src]

C++ enum variant: WA_AttributeCount = 131

pub const WAStyleSheetTarget: WidgetAttribute[src]

Indicates that the widget appearance was modified by a style sheet. WA_StyleSheet will also be set. (C++ enum variant: WA_StyleSheetTarget = 131)

pub const WAAttributeCount2: WidgetAttribute[src]

C++ enum variant: WA_AttributeCount = 132

Trait Implementations

impl From<i32> for WidgetAttribute[src]

impl From<WidgetAttribute> for c_int[src]

impl Clone for WidgetAttribute[src]

impl Copy for WidgetAttribute[src]

impl Eq for WidgetAttribute[src]

impl PartialEq<WidgetAttribute> for WidgetAttribute[src]

impl Debug for WidgetAttribute[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]