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

QAbstractItemModel integration

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • 6.8.0 FF
    • None
    • Quick: Other
    • None

    Description

      Creating an equivalent Java interface/abstract for QAbstractItemModel which can be set as a property to QtQuickView.

      Possible Scenarios

      // A QtAbstractItemModel has been implemented by user
      MyConcreteModel model;
      qtQuickView.setProperty("dataModel", model);
      // the model will be used as an instance of QAIM in Quick application
      
      // QML: A QAbstractItemModel instance exists in the Quick component
      ListView {
          property ListModel dataModel : MyListModel{}
      }
      
      //Java:
      MyConcreteModel model = (MyConcreteModel)qtQuickView.getProperty("dataModel");
      model.insertRow(10, 20, 30);
      

      Attachments

        Issue Links

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

          Activity

            People

              soarmin Soheil Armin
              soarmin Soheil Armin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change