|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.core.Qt.WidgetAttribute
public static final class 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. The attribute is off by default and can be enabled on a per-window basis.
Field Summary | |
---|---|
static Qt.WidgetAttribute |
WA_AcceptDrops
Allows data from drag and drop operations to be dropped onto the widget (see QWidget.:setAcceptDrops() ). |
static Qt.WidgetAttribute |
WA_AlwaysShowToolTips
Enables tooltips for inactive windows. |
static Qt.WidgetAttribute |
WA_AttributeCount
|
static Qt.WidgetAttribute |
WA_CanHostQMdiSubWindowTitleBar
|
static Qt.WidgetAttribute |
WA_ContentsPropagated
This flag is superfluous and obsolete; it no longer has any effect. |
static Qt.WidgetAttribute |
WA_CustomWhatsThis
Indicates that the widget wants to continue operating normally in "What's This?" mode. |
static Qt.WidgetAttribute |
WA_DeleteOnClose
Makes Qt delete this widget when the widget has accepted the close event (see QWidget::closeEvent() ). |
static Qt.WidgetAttribute |
WA_Disabled
Indicates that the widget is disabled, i. |
static Qt.WidgetAttribute |
WA_DontCreateNativeAncestors
Indicates that the widget's ancestors are kept non-native even though the widget itself is native. |
static Qt.WidgetAttribute |
WA_DontShowOnScreen
|
static Qt.WidgetAttribute |
WA_DropSiteRegistered
|
static Qt.WidgetAttribute |
WA_ForceDisabled
Indicates that the widget is explicitly disabled, i. |
static Qt.WidgetAttribute |
WA_ForceUpdatesDisabled
Indicates that updates are explicitly disabled for the widget; i. |
static Qt.WidgetAttribute |
WA_GrabbedShortcut
|
static Qt.WidgetAttribute |
WA_GroupLeader
This attribute has been deprecated. |
static Qt.WidgetAttribute |
WA_Hover
Forces Qt to generate paint events when the mouse enters or leaves the widget. |
static Qt.WidgetAttribute |
WA_InputMethodEnabled
Enables input methods for Asian languages. |
static Qt.WidgetAttribute |
WA_InputMethodTransparent
|
static Qt.WidgetAttribute |
WA_InvalidSize
|
static Qt.WidgetAttribute |
WA_KeyboardFocusChange
Set on a toplevel window when the users changes focus with the keyboard (tab, backtab, or shortcut). |
static Qt.WidgetAttribute |
WA_KeyCompression
Enables key event compression if set, and disables it if not set. |
static Qt.WidgetAttribute |
WA_LaidOut
|
static Qt.WidgetAttribute |
WA_LayoutOnEntireRect
Indicates that the widget wants QLayout to operate on the entire QWidget::rect() , not only on QWidget::contentsRect() . |
static Qt.WidgetAttribute |
WA_LayoutUsesWidgetRect
Ignore the layout item rect from the style when laying out this widget with QLayout . |
static Qt.WidgetAttribute |
WA_MacAlwaysShowToolWindow
On Mac OS X, show the tool window even when the application is not active. |
static Qt.WidgetAttribute |
WA_MacBrushedMetal
Indicates the widget should be drawn in the brushed metal style as supported by the windowing system. |
static Qt.WidgetAttribute |
WA_MacFrameworkScaled
Enables resolution independence aware mode on Mac when using Carbon. |
static Qt.WidgetAttribute |
WA_MacMiniSize
Indicates the widget should have the mini size for widgets in Mac OS X. |
static Qt.WidgetAttribute |
WA_MacNoClickThrough
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. |
static Qt.WidgetAttribute |
WA_MacNormalSize
Indicates the widget should have the normal size for widgets in Mac OS X. |
static Qt.WidgetAttribute |
WA_MacOpaqueSizeGrip
Indicates that the native Carbon size grip should be opaque instead of transparent (the default). |
static Qt.WidgetAttribute |
WA_MacShowFocusRect
Indicates that this widget should get a QFocusFrame around it. |
static Qt.WidgetAttribute |
WA_MacSmallSize
Indicates the widget should have the small size for widgets in Mac OS X. |
static Qt.WidgetAttribute |
WA_MacVariableSize
Indicates the widget can choose between alternative sizes for widgets to avoid clipping. |
static Qt.WidgetAttribute |
WA_Mapped
Indicates that the widget is mapped on screen. |
static Qt.WidgetAttribute |
WA_MouseNoMask
Makes the widget receive mouse events for the entire widget regardless of the currently set mask, overriding QWidget::setMask() . |
static Qt.WidgetAttribute |
WA_MouseTracking
Indicates that the widget has mouse tracking enabled. |
static Qt.WidgetAttribute |
WA_Moved
Indicates that the widget has an explicit position. |
static Qt.WidgetAttribute |
WA_MSWindowsUseDirect3D
Makes drawing to a widget with this attribute set use the Direct3D paint engine, if the Direct3D paint engine is available. |
static Qt.WidgetAttribute |
WA_NativeWindow
Indicates that a native window is created for the widget. |
static Qt.WidgetAttribute |
WA_NoChildEventsForParent
Indicates that the widget does not want ChildAdded or ChildRemoved events sent to its parent. |
static Qt.WidgetAttribute |
WA_NoChildEventsFromChildren
Indicates that the widget does not want to receive ChildAdded or ChildRemoved events sent from its children. |
static Qt.WidgetAttribute |
WA_NoMousePropagation
Prohibits mouse events from being propagated to the widget's parent. |
static Qt.WidgetAttribute |
WA_NoMouseReplay
Used for pop-up widgets. |
static Qt.WidgetAttribute |
WA_NoSystemBackground
Indicates that the widget has no background, i. |
static Qt.WidgetAttribute |
WA_NoX11EventCompression
|
static Qt.WidgetAttribute |
WA_OpaquePaintEvent
Indicates that the widget paints all its pixels when it receives a paint event. |
static Qt.WidgetAttribute |
WA_OutsideWSRange
Indicates that the widget is outside the valid range of the window system's coordinate system. |
static Qt.WidgetAttribute |
WA_PaintOnScreen
Indicates that the widget wants to draw directly onto the screen. |
static Qt.WidgetAttribute |
WA_PaintOutsidePaintEvent
Makes it possible to use QPainter to paint on the widget outside paintEvent() . |
static Qt.WidgetAttribute |
WA_PaintUnclipped
Makes all painters operating on this widget unclipped. |
static Qt.WidgetAttribute |
WA_PendingMoveEvent
Indicates that a move event is pending, e.g. |
static Qt.WidgetAttribute |
WA_PendingResizeEvent
Indicates that a resize event is pending, e.g. |
static Qt.WidgetAttribute |
WA_PendingUpdate
|
static Qt.WidgetAttribute |
WA_QuitOnClose
Makes Qt quit the application when the last widget with the attribute set has accepted closeEvent(). |
static Qt.WidgetAttribute |
WA_Resized
Indicates that the widget has an explicit size. |
static Qt.WidgetAttribute |
WA_RightToLeft
Indicates that the layout direction for the widget is right to left. |
static Qt.WidgetAttribute |
WA_SetCursor
Indicates that the widget has a cursor of its own. |
static Qt.WidgetAttribute |
WA_SetFont
Indicates that the widget has a font of its own. |
static Qt.WidgetAttribute |
WA_SetLayoutDirection
|
static Qt.WidgetAttribute |
WA_SetLocale
Indicates the local should be taken into consideration in the widget. |
static Qt.WidgetAttribute |
WA_SetPalette
Indicates that the widget has a palette of its own. |
static Qt.WidgetAttribute |
WA_SetStyle
Indicates that the widget has a style of its own. |
static Qt.WidgetAttribute |
WA_SetWindowIcon
|
static Qt.WidgetAttribute |
WA_SetWindowModality
|
static Qt.WidgetAttribute |
WA_ShowModal
This attribute has been deprecated. |
static Qt.WidgetAttribute |
WA_ShowWithoutActivating
Show the widget without making it active. |
static Qt.WidgetAttribute |
WA_StaticContents
Indicates that the widget contents are north-west aligned and static. |
static Qt.WidgetAttribute |
WA_StyledBackground
Indicates the widget should be drawn using a styled background. |
static Qt.WidgetAttribute |
WA_StyleSheet
Indicates that the widget is styled using a style sheet. |
static Qt.WidgetAttribute |
WA_TintedBackground
|
static Qt.WidgetAttribute |
WA_TranslucentBackground
Indicates that the widget should have a translucent background; i. |
static Qt.WidgetAttribute |
WA_TransparentForMouseEvents
|
static Qt.WidgetAttribute |
WA_UnderMouse
Indicates that the widget is under the mouse cursor. |
static Qt.WidgetAttribute |
WA_UpdatesDisabled
Indicates that updates are blocked (including the system background). |
static Qt.WidgetAttribute |
WA_WindowModified
Indicates that the window is marked as modified. |
static Qt.WidgetAttribute |
WA_WindowPropagation
Makes a toplevel window inherit font and palette from its parent. |
static Qt.WidgetAttribute |
WA_WState_CompressKeys
|
static Qt.WidgetAttribute |
WA_WState_ConfigPending
|
static Qt.WidgetAttribute |
WA_WState_Created
|
static Qt.WidgetAttribute |
WA_WState_DND
|
static Qt.WidgetAttribute |
WA_WState_ExplicitShowHide
|
static Qt.WidgetAttribute |
WA_WState_Hidden
|
static Qt.WidgetAttribute |
WA_WState_InPaintEvent
|
static Qt.WidgetAttribute |
WA_WState_OwnSizePolicy
|
static Qt.WidgetAttribute |
WA_WState_Polished
|
static Qt.WidgetAttribute |
WA_WState_Reparented
|
static Qt.WidgetAttribute |
WA_WState_Visible
|
static Qt.WidgetAttribute |
WA_WState_WindowOpacitySet
|
static Qt.WidgetAttribute |
WA_X11BypassTransientForHint
|
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeCombo
Adds _NET_WM_WINDOW_TYPE_COMBO to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeDesktop
Adds _NET_WM_WINDOW_TYPE_DESKTOP to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeDialog
Adds _NET_WM_WINDOW_TYPE_DIALOG to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeDND
Adds _NET_WM_WINDOW_TYPE_DND to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeDock
Adds _NET_WM_WINDOW_TYPE_DOCK to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeDropDownMenu
Adds _NET_WM_WINDOW_TYPE_DROPDOWN_MENU to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeMenu
Adds _NET_WM_WINDOW_TYPE_MENU to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeNotification
Adds _NET_WM_WINDOW_TYPE_NOTIFICATION to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypePopupMenu
Adds _NET_WM_WINDOW_TYPE_POPUP_MENU to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeSplash
Adds _NET_WM_WINDOW_TYPE_SPLASH to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeToolBar
Adds _NET_WM_WINDOW_TYPE_TOOLBAR to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeToolTip
Adds _NET_WM_WINDOW_TYPE_TOOLTIP to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11NetWmWindowTypeUtility
Adds _NET_WM_WINDOW_TYPE_UTILITY to the window's _NET_WM_WINDOW_TYPE X11 window property. |
static Qt.WidgetAttribute |
WA_X11OpenGLOverlay
|
Method Summary | |
---|---|
static Qt.WidgetAttribute |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static Qt.WidgetAttribute |
valueOf(java.lang.String name)
|
static Qt.WidgetAttribute[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Qt.WidgetAttribute WA_Disabled
QWidget::isEnabled()
. This is set/cleared by the Qt kernel.
public static final Qt.WidgetAttribute WA_UnderMouse
QWidget::underMouse()
. This is set/cleared by the Qt kernel.
public static final Qt.WidgetAttribute WA_MouseTracking
QWidget::mouseTracking
.
public static final Qt.WidgetAttribute WA_ContentsPropagated
WA_PaintOnScreen
propagate their contents.
public static final Qt.WidgetAttribute WA_OpaquePaintEvent
WA_OpaquePaintEvent
is a small optimization. It can help to reduce flicker on systems that do not provide double buffer support, and it avoids the computational cycles necessary to erase the background prior to paint. Note: Unlike WA_NoSystemBackground
, WA_OpaquePaintEvent
makes an effort to avoid transparent window backgrounds. This is set/cleared by the widget's author.
public static final Qt.WidgetAttribute WA_StaticContents
public static final Qt.WidgetAttribute WA_LaidOut
public static final Qt.WidgetAttribute WA_PaintOnScreen
QWidget::paintEngine()
to return 0 and set this flag. Note: This flag disables double buffering.
public static final Qt.WidgetAttribute WA_NoSystemBackground
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 is set/cleared by the widget's author.
public static final Qt.WidgetAttribute WA_UpdatesDisabled
public static final Qt.WidgetAttribute WA_Mapped
public static final Qt.WidgetAttribute WA_MacNoClickThrough
WA_MacNoClickThrough
also applies to all child widgets of the widget that has it set.
public static final Qt.WidgetAttribute WA_PaintOutsidePaintEvent
QPainter
to paint on the widget outside paintEvent()
. This is not supported on Windows, Mac OS X or Embedded Linux. We recommend that you use this attribute only when porting Qt 3 code to Qt 4.
public static final Qt.WidgetAttribute WA_InputMethodEnabled
public static final Qt.WidgetAttribute WA_WState_Visible
public static final Qt.WidgetAttribute WA_WState_Hidden
public static final Qt.WidgetAttribute WA_ForceDisabled
WA_Disabled
. This is set/cleared by QWidget::setEnabled()
and QWidget::setDisabled()
.
public static final Qt.WidgetAttribute WA_KeyCompression
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.
public static final Qt.WidgetAttribute WA_PendingMoveEvent
public static final Qt.WidgetAttribute WA_PendingResizeEvent
public static final Qt.WidgetAttribute WA_SetPalette
QWidget::setPalette()
.
public static final Qt.WidgetAttribute WA_SetFont
QWidget::setFont()
.
public static final Qt.WidgetAttribute WA_SetCursor
QWidget::setCursor()
and QWidget::unsetCursor()
.
public static final Qt.WidgetAttribute WA_NoChildEventsFromChildren
public static final Qt.WidgetAttribute WA_WindowModified
QWidget::setWindowModified()
.
public static final Qt.WidgetAttribute WA_Resized
QWidget::resize()
and by QWidget::setGeometry()
.
public static final Qt.WidgetAttribute WA_Moved
QWidget::move()
and by QWidget::setGeometry()
.
public static final Qt.WidgetAttribute WA_PendingUpdate
public static final Qt.WidgetAttribute WA_InvalidSize
public static final Qt.WidgetAttribute WA_MacBrushedMetal
public static final Qt.WidgetAttribute WA_CustomWhatsThis
public static final Qt.WidgetAttribute WA_LayoutOnEntireRect
QLayout
to operate on the entire QWidget::rect()
, not only on QWidget::contentsRect()
. This is set by the widget's author.
public static final Qt.WidgetAttribute WA_OutsideWSRange
public static final Qt.WidgetAttribute WA_GrabbedShortcut
public static final Qt.WidgetAttribute WA_TransparentForMouseEvents
public static final Qt.WidgetAttribute WA_PaintUnclipped
WA_PaintOnScreen
flag is 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.
public static final Qt.WidgetAttribute WA_SetWindowIcon
public static final Qt.WidgetAttribute WA_NoMouseReplay
public static final Qt.WidgetAttribute WA_DeleteOnClose
QWidget::closeEvent()
).
public static final Qt.WidgetAttribute WA_RightToLeft
public static final Qt.WidgetAttribute WA_SetLayoutDirection
public static final Qt.WidgetAttribute WA_NoChildEventsForParent
public static final Qt.WidgetAttribute WA_ForceUpdatesDisabled
WA_UpdatesDisabled
. This is set/cleared by QWidget::setUpdatesEnabled()
.
public static final Qt.WidgetAttribute WA_WState_Created
public static final Qt.WidgetAttribute WA_WState_CompressKeys
public static final Qt.WidgetAttribute WA_WState_InPaintEvent
public static final Qt.WidgetAttribute WA_WState_Reparented
public static final Qt.WidgetAttribute WA_WState_ConfigPending
public static final Qt.WidgetAttribute WA_WState_Polished
public static final Qt.WidgetAttribute WA_WState_DND
public static final Qt.WidgetAttribute WA_WState_OwnSizePolicy
public static final Qt.WidgetAttribute WA_WState_ExplicitShowHide
public static final Qt.WidgetAttribute WA_ShowModal
QWidget::windowModality
instead.
public static final Qt.WidgetAttribute WA_MouseNoMask
QWidget::setMask()
. This is not applicable for top-level windows.
public static final Qt.WidgetAttribute WA_GroupLeader
QWidget::windowModality
instead.
public static final Qt.WidgetAttribute WA_NoMousePropagation
public static final Qt.WidgetAttribute WA_Hover
public static final Qt.WidgetAttribute WA_InputMethodTransparent
public static final Qt.WidgetAttribute WA_QuitOnClose
QApplication::quitOnLastWindowClosed
property. By default the attribute is set for all widgets of type Qt::Window
.
public static final Qt.WidgetAttribute WA_KeyboardFocusChange
public static final Qt.WidgetAttribute WA_AcceptDrops
QWidget.:setAcceptDrops()
).
public static final Qt.WidgetAttribute WA_DropSiteRegistered
public static final Qt.WidgetAttribute WA_WindowPropagation
public static final Qt.WidgetAttribute WA_NoX11EventCompression
public static final Qt.WidgetAttribute WA_TintedBackground
public static final Qt.WidgetAttribute WA_X11OpenGLOverlay
public static final Qt.WidgetAttribute WA_AlwaysShowToolTips
public static final Qt.WidgetAttribute WA_MacOpaqueSizeGrip
public static final Qt.WidgetAttribute WA_SetStyle
QWidget::setStyle()
.
public static final Qt.WidgetAttribute WA_SetLocale
public static final Qt.WidgetAttribute WA_MacShowFocusRect
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 Mac OS X.
public static final Qt.WidgetAttribute WA_MacNormalSize
public static final Qt.WidgetAttribute WA_MacSmallSize
public static final Qt.WidgetAttribute WA_MacMiniSize
public static final Qt.WidgetAttribute WA_LayoutUsesWidgetRect
QLayout
. This makes a difference in QMacStyle and QPlastiqueStyle
for some widgets.
public static final Qt.WidgetAttribute WA_StyledBackground
public static final Qt.WidgetAttribute WA_MSWindowsUseDirect3D
public static final Qt.WidgetAttribute WA_CanHostQMdiSubWindowTitleBar
public static final Qt.WidgetAttribute WA_MacAlwaysShowToolWindow
public static final Qt.WidgetAttribute WA_StyleSheet
public static final Qt.WidgetAttribute WA_ShowWithoutActivating
public static final Qt.WidgetAttribute WA_X11BypassTransientForHint
public static final Qt.WidgetAttribute WA_NativeWindow
Qt::WA_DontCreateNativeAncestors
is set.
public static final Qt.WidgetAttribute WA_DontCreateNativeAncestors
public static final Qt.WidgetAttribute WA_MacVariableSize
public static final Qt.WidgetAttribute WA_DontShowOnScreen
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeDesktop
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeDock
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeToolBar
QToolBar
.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeMenu
QMenu
when torn-off.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeUtility
Qt::Tool
window type.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeSplash
Qt::SplashScreen
window type.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeDialog
Qt::Dialog
and Qt::Sheet
window types.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeDropDownMenu
QMenuBar
.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypePopupMenu
QMenu
.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeToolTip
Qt::ToolTip
window type.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeNotification
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeCombo
QComboBox
pop-up.
public static final Qt.WidgetAttribute WA_X11NetWmWindowTypeDND
public static final Qt.WidgetAttribute WA_MacFrameworkScaled
public static final Qt.WidgetAttribute WA_SetWindowModality
public static final Qt.WidgetAttribute WA_WState_WindowOpacitySet
public static final Qt.WidgetAttribute WA_TranslucentBackground
WA_NoSystemBackground
to be set. This flag is set/cleared by the widget's author.
public static final Qt.WidgetAttribute WA_AttributeCount
Method Detail |
---|
public static Qt.WidgetAttribute[] values()
public static Qt.WidgetAttribute valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static Qt.WidgetAttribute resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |