Results 1 to 2 of 2

Thread: QFlags with std::initializer_list

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,316
    Thanks
    314
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QFlags with std::initializer_list

    Try removing the "class" scoping on your definition of SignalState. It is possible that the Q_DECLARE_FLAGS() macro is not generating the correct code for this level of C++11 compliance. You can simulate scoping the old-fashioned way: SS_ENTRY, SS_EXIT.

  2. The following user says thank you to d_stranz for this useful post:

    TorAn (18th January 2016)

Similar Threads

  1. Use QFlags
    By qt_developer in forum Newbie
    Replies: 3
    Last Post: 25th May 2012, 11:35
  2. Replies: 5
    Last Post: 18th July 2010, 08:39
  3. QFlags questions
    By elcuco in forum Newbie
    Replies: 3
    Last Post: 19th March 2010, 14:33
  4. Storing and Retrieving a QFlags
    By darkadept in forum Qt Programming
    Replies: 3
    Last Post: 4th October 2007, 18:53

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
  •  
Qt is a trademark of The Qt Company.