Results 1 to 5 of 5

Thread: void clearWState( uint n );

  1. #1
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default void clearWState( uint n );

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: void clearWState( uint n );

    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

  3. #3
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: void clearWState( uint n );

    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

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: void clearWState( uint n );

    no it isn't in QT4.
    What do you want to do exactly?

    cheers

  5. #5
    Join Date
    Jan 2006
    Location
    Minsk, Brest, Belarus
    Posts
    54
    Thanks
    3
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: void clearWState( uint n );

    Quote Originally Posted by sunil.thaha
    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.

Similar Threads

  1. Q3ScrollView resists to scroll down to the garbage bin
    By sivrisinek in forum Qt Programming
    Replies: 0
    Last Post: 5th February 2009, 18:50
  2. Custom Model Advice Requested
    By mclark in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2008, 17:26
  3. Must construct QApplication before QPaintDevice
    By sekatsim in forum Qt Programming
    Replies: 16
    Last Post: 8th June 2008, 01:00
  4. Delayed Rendering of QTabWidget Tabs
    By mclark in forum Qt Tools
    Replies: 13
    Last Post: 14th May 2007, 23:53
  5. Replies: 9
    Last Post: 31st March 2006, 14:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.