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

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QAbstractItemModel>
#include <QApplication>
#include <QListView>
#include "model.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 The main function for the string list model example.
 

Function Documentation

◆ main()

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

The main function for the string list model example.

[2]

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

[1]

[0] //! [1] //! [2] //! [3]

[2]

[4]

[3] //! [4]

[5]

Definition at line 17 of file main.cpp.

References app, QApplication::exec(), QAbstractTableModel::index(), model, QString::number(), QAbstractItemModel::setData(), QWindow::show(), and view.

+ Here is the call graph for this function: