Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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().