qabstracttablemodel Questions
2
Solved
I have a simple QAbstractTableModel-based model and a QTableView for it.
My aim is simple as well: allow to move/reorder rows via drag'n'drop. Notes:
D'n'd changes inside QTableView should be re...
Cervantes asked 13/7, 2017 at 10:18
3
Solved
I am super new to Qt programming. I am trying to make a simple table that can have rows added by clicking a button. I can implement the table fine but can't seem to get the updated data to show on ...
Acerose asked 1/4, 2014 at 16:35
5
Solved
I've been struggling with this for some times now, and I can't seem to find the right way to do this.
What I would like is the ability to use an animated icon as a decoration for some of my items ...
Dogwatch asked 5/12, 2010 at 21:36
2
Solved
I need to implement a table with Qt.
I believe I'll be suing a QAbstractTableModel, with a QTableView using this model.
I understand I'll have to edit the rowCount(), columnCount(), and data() fu...
Southeasterly asked 7/1, 2013 at 3:59
1
Solved
I have created a model based off of QAbstractTableModel that allows the user to edit data in that model. The model is displayed in a QTableView in a QMainWindow. So far in my model I am able to mak...
Certify asked 25/4, 2019 at 18:7
3
Solved
I want to delete a selected row from the table when I click on the delete button.
But I can't find anything regarding deleting rows in the Qt documentation. Any ideas?
Catrinacatriona asked 25/9, 2013 at 18:26
3
Solved
I am implementing QAbstractTableModel and I would like to insert a QPushButton in the last column of each row. When users click on this button, a new window is shown with more information about thi...
Protectionism asked 4/5, 2010 at 15:57
1
Solved
I have QTableView and QAbstractTableModel. I require rows to have height equal to 24. I know the only way to do this is by calling QTableView::setRowHeight. Since the model is dynamic it may be add...
Pisa asked 10/10, 2013 at 19:32
1
Solved
I've a QTableView.
Is there a way to align to the centre, all the cell contents of this view?
I'm not using any delegate. It's just an AbstractTableModel which is added as a model to a QTableView...
Rayraya asked 7/2, 2013 at 13:46
2
Solved
The following is what I've currently tried. The header text changes color correctly but the background will not change from the default.
template<typename T>
inline QVariant TableModel<T&...
Olomouc asked 12/7, 2012 at 14:59
2
Solved
We are using a QTableView with Qt 4.6.3, and need a column that only has a checkbox in each cell. We're using a custom subclass of QAbstractTableModel as the model for the QTableView. Right now, we...
Mutant asked 29/7, 2010 at 13:49
1
Solved
The following is my add a row class. It is called by the code, not the table and I want it to properly call dataChanged when a new row is added, although this isn't working, the table doesn't do an...
Olav asked 14/5, 2011 at 11:0
1
Solved
I've subclassed QAbstractTableModel and overrode the flags() method so that some of the table cells are editable. The problem is that when I start editing, the existing cell value is erased. I woul...
Aram asked 8/5, 2010 at 5:15
1
© 2022 - 2024 — McMap. All rights reserved.