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

Add QFlags64

    XMLWordPrintable

Details

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

    Description

      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.

       

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes