Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25352

clazy should help with metatype changes in Qt 6

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • None

    Description

      There were a few changes to QMetaType and QVariant where additional tooling would be helpful:

      • QMetaType(QMetaType::Int)/QMetaType(QVariant::Int) should become QMetaType::fromType<int>(); same for the other QMetaType::Type values
      • variant.metaType().id() should be simplified to variant.userType(); except when its inside a QMetaType constructor: QMetaType type = QMetaType(variant.metaType().id()) should simply become QMetaType type = variant.metaType() .

      Attachments

        Issue Links

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

          Activity

            People

              lugerard Lucie Gerard
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes