PDA

View Full Version : void clearWState( uint n );



sunil.thaha
3rd February 2006, 14:21
What does void QWidget::clearWState( uint n ) do ?
It's called in the Designer Generated Code In Qt 3.3.4

Everall
3rd February 2006, 14:39
it's an internal function that clears the widgets states specified by uint n

from widget.cpp :
n can be eg. :
\i WState_Created The widget has a valid winId().
\i WState_Disabled The widget does not receive any mouse or keyboard
events.
\i WState_ForceDisabled The widget is explicitly disabled, i.e. it
will remain disabled even when all its ancestors are set to the enabled
state. This implies WState_Disabled.
\i WState_Visible The widget is currently visible.
\i WState_ForceHide The widget is explicitly hidden, i.e. it won't
become visible unless you call show() on it. WState_ForceHide
implies !WState_Visible.
\i WState_OwnCursor A cursor has been set for this widget.
\i WState_MouseTracking Mouse tracking is enabled.
\i WState_CompressKeys Compress keyboard events.
\i WState_BlockUpdates Repaints and updates are disabled.
\i WState_InPaintEvent Currently processing a paint event.
\i WState_Reparented The widget has been reparented.
\i WState_ConfigPending A configuration (resize/move) event is pending.
\i WState_Resized The widget has been resized.
\i WState_AutoMask The widget has an automatic mask, see setAutoMask().
\i WState_Polished The widget has been "polished" (i.e. late
initialization) by a QStyle.
\i WState_DND The widget supports drag and drop, see setAcceptDrops().
\i WState_Exposed the widget was finally exposed (X11 only,
helps avoid paint event doubling).
\i WState_HasMouse The widget is under the mouse cursor.

setWState on the opposite sets the widgets states.

cheers

sunil.thaha
4th February 2006, 04:57
Think it's not available in Qt-4

Everall
4th February 2006, 17:08
no it isn't in QT4.
What do you want to do exactly?

cheers

Xagen
4th February 2006, 17:12
What does void QWidget::clearWState( uint n ) do ?
It's called in the Designer Generated Code In Qt 3.3.4

Read the book - Programming in QT3.