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
cpp-tablemodel.cpp
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#include "cpp-tablemodel.h"
5#include <QGuiApplication>
6#include <QQuickView>
7
8int main(int argc, char *argv[])
9{
10 QGuiApplication app(argc, argv);
11
13 view.setSource(QStringLiteral("qrc:/cpp-tablemodel.qml"));
14 view.show();
15
16 return app.exec();
17}
18
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
\macro qGuiApp
The QQuickView class provides a window for displaying a Qt Quick user interface.
Definition qquickview.h:20
void setSource(const QUrl &)
Sets the source to the url, loads the QML component and instantiates it.
void show()
Shows the window.
Definition qwindow.cpp:2254
int main()
[0]
#define QStringLiteral(str)
QApplication app(argc, argv)
[0]
QQuickView * view
[0]