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

metatype of a QVariant holding a QBluetoothUuid is not the metatype of QBluetoothUuid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.3.0 Feature Freeze
    • Core: Object Model
    • None
    • Linux/X11

    Description

      The metatype of a QVariant holding a QBluetoothUuid is QUuid.

      This code

      int main(int argc, char** argv) {
          qRegisterMetaType<QBluetoothUuid>();
      
          qDebug() << qRegisterMetaType<QBluetoothUuid>();
          qDebug() << qMetaTypeId<QBluetoothUuid>();
          qDebug() << QVariant(QBluetoothUuid()).typeId();
          qDebug() << QVariant(QBluetoothUuid()).metaType().id();
          qDebug() << QMetaType::fromType<QBluetoothUuid>().id();
          qDebug() << QMetaType::typeName(QVariant(QBluetoothUuid()).typeId());
          qDebug() << QMetaType::QUuid;
          return 0;
      }
      

      prints the following:

      65538
      65538
      30
      30
      65538
      QUuid
      30
      

      Attachments

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

        Activity

          People

            andreasbuhr Andreas Buhr
            andreasbuhr Andreas Buhr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes