qabstractlistmodel Questions

3

Solved

I have a QML ComboBox which has a QAbstractListModel attached to it. Something like this: ComboBox { model: customListModel } And I would like it to display an extra item in the drop down list wh...
Betwixt asked 7/10, 2020 at 2:13

3

I've created a QAbstractListModel derived model based on an underlying QHash. Since I need to use the model in QML, I cannot make use of the sorting functionality Qt widgets and views have integrat...
Witness asked 25/4, 2013 at 19:7

3

Solved

I'm new with Qt , so please bear with me . I've successfully managed to populate a ListView from a StringList and a QList of Object* What I'm struggling now with is to populate a ListView in QML ...
Carver asked 10/12, 2014 at 11:35

3

Solved

I'm trying to access a role from a ListView in QML. Essentially, I have this in my QML: ListView { id: myId model: myModel delegate: Item { Text { text: model.text } Text { text: model.mor...
Redware asked 8/3, 2011 at 11:33

1

Solved

I am trying to write a QML Gui for a large dynamic C/Fortran simulation. The data I want to display is stored in Fortran Common blocks and updated on fixed time steps. My problem is that QML ListVi...
Wearable asked 28/7, 2016 at 8:18

2

Solved

I've been following some tutorials and trying to get a list model set up. My main window has two list views that are accessing the same model. When I update an item in one list, the other list does...
Gracia asked 21/3, 2014 at 13:35

1

Solved

I am trying to understand how one would choose whether to use a QAbstractListModel or a QObject with a QQmlListProperty. Given that the QQmlListProperty handles the "roles" functionality that wou...
Construe asked 10/4, 2015 at 17:21

3

Solved

I'm new to model view and I have been following this tutorial while checking the documentation at the same time and I stumbled upon this little detail : The code of the tutorial which can be downlo...
Airworthy asked 26/12, 2013 at 12:4

1

Solved

I figured out how to expose and bind an instance of a QAbstractListModel derived listmodel to/in QML. But what I really want to do is to expose an object to QML and bind a member which is a QAbstr...
Notary asked 14/2, 2014 at 7:27

2

Solved

I am running Qt 5.1.1 and QtCreator 2.8.1 on a Mac with OS-X 10.8.5. I have a QAbstractListModel that manages ImageData objects. I can load the images and display them just fine in QML using a Grid...
Nephograph asked 9/11, 2013 at 20:40

1

Solved

I have a custom model which derives from QAbstractListModel which is exposed to QML. I need to support operations to add new items and remove existing items. While insertion operation works without...
Softfinned asked 10/10, 2013 at 12:57

1

I have created a very simple example of QListView with a custom QAbstractListModel. The QListView is displayed but it is empty. What am I doing wrong? Code: #include <QListView> #include ...
Shaveling asked 27/2, 2013 at 5:18

1

I have a subclass of QAbstractListModel and attached this model subclass with GridView. When I remove rows from my subclass, the GridView gets updated but when I insert rows in the model the GridVi...
Lapidary asked 12/9, 2012 at 19:11

2

Solved

I've cooked up a QAbstractListModel whose model indexes contain a pointer I absolutely needed in order to process data. I add the data like so: void PointListModel::addPoint(int frameNumber, QPoin...
Kt asked 27/1, 2011 at 4:13

2

Solved

My application stores a few objects of a type that inherits from QAbstractListModel objects. This generates quite a lot of duplicated code when wrapping a simple std::vector<T> or a QList&lt...
Materfamilias asked 17/1, 2012 at 13:30
1

© 2022 - 2024 — McMap. All rights reserved.