qmodelindex Questions
5
Solved
Is there any way to get a list of currently visible items in QAbstractItemView? And, if it possible, to receive any notifications about changing of this list.
Upd:
I'm asking exactly about QAbstra...
Integrator asked 4/4, 2013 at 17:7
2
I have spent the last week struggling to create a QModelIndex given a row and a column.
Alternatively, I would settle for changing the value of row() in an already existing QModelIndex.
Any help ...
Shipboard asked 27/2, 2017 at 14:0
1
Solved
I want to fire QAbstractItemView::doubleClicked slot programaticaly for an item that has specific text. I want to do this using QAbstractItemView class and not it's implementations if possible.
Th...
Orthopter asked 25/8, 2016 at 20:2
1
Solved
I have a QStandardItemModel, which I display in q QTreeView. Works fine.
To highlight relevant rows I want to highlight some of them: Therefore I have a QStringList with the names of the QStandIte...
Magnanimity asked 14/10, 2015 at 12:8
2
Solved
When subclassing QAbstractTableModel, what's the proper way to get a QModelIndex for a given row and column (for example, to provide a convenience method data(int row, int column))?
There's index(...
Albuquerque asked 17/11, 2012 at 22:56
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
3
Solved
Is there a way to convert QModelIndex to QString? The main goal behind this is that I want to work with the contents of dynamically generated QListView-Items.
QFileSystemModel *foolist = new QFile...
Anaplastic asked 15/5, 2012 at 9:45
1
Solved
I'm trying to enter edit mode on a specific cell like this:
void MainWindow::on_addButton_released() {
tm->addRow();
tableView->scrollToBottom();
int ec=tm->firstWritableColumn();
int...
Planometer asked 22/3, 2010 at 13:19
1
Solved
I'm interested in calculating the physical position of a node in QTreeView and can't find a way to do this (other than calculating it myself, which is cumbersome and error prone given the robustnes...
Cancan asked 16/11, 2009 at 1:49
1
© 2022 - 2024 — McMap. All rights reserved.