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>.
Loading...
Searching...
No Matches
main.cpp File Reference

(c49bf9fe27e0632aa8da393ff007cf4577a1c9cd)

#include <QApplication>
#include <QLabel>
#include <QVBoxLayout>
#include <QWidget>
#include <QFileSystemModel>
#include <QPalette>
#include <QDir>
#include <QModelIndex>
+ Include dependency graph for main.cpp:

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.
 

Function Documentation

◆ main()

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().

+ Here is the call graph for this function: