Results 1 to 2 of 2

Thread: Is flags a typdef?

  1. #1
    Join Date
    Sep 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Is flags a typdef?

    I've just dipped my toes into Qt and was wondering about the following.
    Class QMessageBox defines public types including
    Qt Code:
    1. enum StandardButton { Ok, Open, Save, Cancel, ..., ButtonMask }
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. flags StandardButtons
    To copy to clipboard, switch view to plain text mode 

    What is flags? Is it a typedef?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is flags a typdef?

    The StandardButtons type is a typedef for QFlags<StandardButton>
    Take a look at QFlags docs.

Similar Threads

  1. OR combination flags in QAbstractFileEngine
    By pmaktieh.sirhc in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2007, 13:31
  2. Flags not doing the work
    By chaosgeorge in forum Qt Programming
    Replies: 1
    Last Post: 24th November 2006, 00:35
  3. QPixmap +dll to installer.. to enable JPG edit
    By patrik08 in forum Installation and Deployment
    Replies: 2
    Last Post: 27th June 2006, 23:27

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.