![]() |
Qt 6.x
The Qt SDK
|
#include <QApplication>
#include <QLabel>
#include <QVBoxLayout>
#include <QWidget>
#include <QFileSystemModel>
#include <QPalette>
#include <QDir>
#include <QModelIndex>
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Create a default directory model and, using the index-based interface to the model and some QLabel widgets, populate the window's layout with the names of objects in the directory. | |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Create a default directory model and, using the index-based interface to the model and some QLabel widgets, populate the window's layout with the names of objects in the directory.
[2]
[0]
[1]
[1]
[2]
[2]
[3]
[3]
[0]
Definition at line 27 of file main.cpp.
References QBoxLayout::addWidget(), app, QPalette::Base, QObject::connect(), QDir::currentPath(), QSqlQueryModel::data(), directory, QFileSystemModel::directoryLoaded(), Qt::DisplayRole, QApplication::exec(), QAbstractTableModel::index(), layout, model, QSqlQueryModel::rowCount(), text, title, QVariant::toString(), and window().