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

Create QMLDataType base class in order to be able to use simple types defined in C++ without dependency of QObject

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • None
    • None

    Description

      At the moment developers have to use QObject derived heavy objects with properies or QVariantMap with heap allocation. It seems not the most performant solution.

      -------------------------------------------------------------

      C++:

      class MyQMLType : public QMLDataType

      -------------------------------------------------------------

      QML:

      Rectangle {

      property MyQMLType data: model.getData()

      x: data.x

      y: data.y

      color: data.color

      }

       

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            kofr Konstantinr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes