Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
main.cpp File Reference

(0dc4fd240a2897c5c443a0ef6d84c416843e4938)

#include <QGuiApplication>
#include <QtQml>
#include <QtQuick>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

static void withComponent ()
int main (int argc, char *argv[])
 [ctor_close]

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

[ctor_close]

[0] [1]

[main_cpp]

[main.cpp body]

The main function for the string list model example.

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.

[0] //! [1]

[1]

[using a custom style]

[4]

[QApplication subclass]

[2]

[21]

[getter functions]

[0]

[3]

[main]

This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]

[ctor_close]

[ctor_close]

This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]

[QQuickView]

[QQuickView]

[properties]

[properties]

[cast]

[cast]

[findChild]

[findChild]

[QQmlComponent-b]

[QQmlComponent-b]

Definition at line 18 of file main.cpp.

References withComponent().

Here is the call graph for this function:

◆ withComponent()

void withComponent ( )
static

[QQmlComponent-a]

[QQmlComponent-a]

Definition at line 7 of file main.cpp.

Referenced by main().

Here is the caller graph for this function: