What does void QWidget::clearWState( uint n ) do ?
It's called in the Designer Generated Code In Qt 3.3.4
What does void QWidget::clearWState( uint n ) do ?
It's called in the Designer Generated Code In Qt 3.3.4
We can't solve problems by using the same kind of thinking we used when we created them
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
Think it's not available in Qt-4
We can't solve problems by using the same kind of thinking we used when we created them
no it isn't in QT4.
What do you want to do exactly?
cheers
Read the book - Programming in QT3.Originally Posted by sunil.thaha
Bookmarks