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

Q_GADGETs can't be used as Pointers in QML

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTBUG-79640
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes