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

Q_GADGETs can't be used as Pointers in QML

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 5.15.0 Alpha
    • None
    • Documentation
    • None
    • 46d1b5b5a9d8fd1fd6629afd67eec7b32fc840fc (qt/qtdeclarative/5.15)

    Description

      Q_GADGETs can't be used as pointers in QML, but I can't find this information in the documentation. It should be mentioned here: https://doc.qt.io/qt-5/qobject.html#Q_GADGET.
      After trying several days to get up and running I found an answer on stack overflow saying that it is not possible to use pointers to Q_GADGETs in QML.

      Attachments

        Issue Links

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

          Activity

            People

              docteam Qt Documentation Team
              autoantwort autoantwort
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes