3#include <QGuiApplication>
18int main(
int argc,
char *argv[])
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
T findChild(QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
Returns the child of this object that can be cast into type T and that is called name,...
bool setProperty(const char *name, const QVariant &value)
Sets the value of the object's name property to value.
The QQmlComponent class encapsulates a QML component definition.
The QQmlEngine class provides an environment for instantiating QML components.
The QQmlProperty class abstracts accessing properties on objects created from QML.
bool write(const QVariant &) const
Sets the property value to value.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
The QQuickView class provides a window for displaying a Qt Quick user interface.
void setSource(const QUrl &)
Sets the source to the url, loads the QML component and instantiates it.
QQuickItem * rootObject() const
Returns the view's root \l {QQuickItem} {item}.
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
void show()
Shows the window.
static qreal component(const QPointF &point, unsigned int i)
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
static void withComponent()
QApplication app(argc, argv)
[0]