Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62507

Add QFlags64

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.9.1
    • Core: Other
    • None

      now QFlags use int type as storage,means that we can only declare up to 32 flags,when we need more than 32 flags, although we can define enumerations like this:

      enum Option : quint64
      {
               Option1 = 0x1,
               Option2  = 0x2,
                …………
                Option64 = 0x8000000000000000
      };
      

      But we can't use Q_DECLARE_FLAGS and Q_DECLARE_OPERATORS_FOR_FLAGS to define flags.

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            itviewer itviewer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes