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

qint8 (signed char on my platform) is not declared as Qt Metatype

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.0
    • 4.6.3
    • Core: Object Model
    • None
    • tested on Windows XP 32-Bit (SP3 if that should matter)
    • 8afc6773067bb878020c29b3bebfe8662e3fbfdd

      qint8 (here: typedef for signed char) is obviously not declared as metatype, unlike, for example, qint16 or qint32

      example:

      QVariant v;
      // v gets some value
      v.canConvert<qint32>(); // works
      v.canConvert<qint16>(); // works
      v.canConvert<qint8>(); // does not work: "'qt_metatype_id' is not a member of 'QMetaTypeId<signed char>'"
      

      workaround:
      therefore, i have to put a
      Q_DECLARE_METATYPE(qint8)
      into my sources myself to make it all work

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            coderr Julian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes