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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes