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

clazy should help with metatype changes in Qt 6

XMLWordPrintable

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

      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() .

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes