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

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QApplication>
#include <QMetaObject>
#include <QMetaMethod>
#include <QMetaProperty>
#include <QDebug>
#include "window.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void exposeMethod (const QMetaMethod &)
 
void exposeProperty (const QMetaProperty &)
 
int main (int argc, char *argv[])
 [2]
 

Function Documentation

◆ exposeMethod()

void exposeMethod ( const QMetaMethod & )

Definition at line 11 of file main.cpp.

◆ exposeProperty()

void exposeProperty ( const QMetaProperty & )

Definition at line 15 of file main.cpp.

◆ main()

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

[2]

[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]

[QApplication subclass]

[21]

[getter functions]

[0]

[3]

[4]

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

[0] [1]

[3]

[2]

[Window class using revision]

[Window class using revision]

[Window class using revision]

[Window class using revision]

Definition at line 19 of file main.cpp.