14int main(
int argc,
char *argv[])
40 splitter->
setWindowTitle(
"Two views onto the same file system model");
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Returns the index of the data in row and column with parent.
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...
static QString currentPath()
Returns the absolute path of the application's current directory.
The QFileSystemModel class provides a data model for the local filesystem.
The QListView class provides a list or icon view onto a model.
The QSplitter class implements a splitter widget.
The QTreeView class provides a default model/view implementation of a tree view.
void setSelectionModel(QItemSelectionModel *selectionModel) override
\reimp
void setRootIndex(const QModelIndex &index) override
\reimp
void setModel(QAbstractItemModel *model) override
\reimp
QSqlQueryModel * model
[16]
QItemSelection * selection
[0]
QApplication app(argc, argv)
[0]