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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 6.3.0 Feature Freeze
    • Fix Version/s: None
    • Component/s: Core: Object Model
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            andreasbuhr Andreas Buhr
            Reporter:
            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