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

QML: Support int types from std library such as int8_t/int16_t/int32_t/...

    XMLWordPrintable

Details

    • All

    Description

      I've got the following function:
      Q_INVOKABLE void doSomething(uint16_t value);

      When calling this function from QML I get:
      example.qml:10: Error: Unknown method parameter type: uint16_t

      Registering the type using qRegisterMetaType() had no effect.

      I could of course just use `quint16`, but fixing this problem sounds like an easy task. Unfortunately I can't find where this can be done.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            lnj Linus Jahn
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes