6#include <QSortFilterProxyModel>
55int main(
int argc,
char *argv[])
MyItemModel(QWidget *parent=nullptr)
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
QObject * parent() const
Returns a pointer to the parent object.
\inmodule QtCore \reentrant
The QSortFilterProxyModel class provides support for sorting and filtering data passed between anothe...
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder) override
\reimp Sorts the model by column in the given order.
void setSourceModel(QAbstractItemModel *sourceModel) override
\reimp
void setFilterRegularExpression(const QString &pattern)
void setFilterKeyColumn(int column)
The QStandardItemModel class provides a generic model for storing custom data.
QObject * parent() const
Returns a pointer to the parent object.
The QTreeView class provides a default model/view implementation of a tree view.
void setModel(QAbstractItemModel *model) override
\reimp
void setSortingEnabled(bool enable)
QSqlQueryModel * model
[16]
QApplication app(argc, argv)
[0]