6int main(
int argc,
char *argv[])
18qDebug() <<
"Property value:" <<
object->property(
"someNumber").toInt();
19object->setProperty(
"someNumber", 100);
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
The QQmlComponent class encapsulates a QML component definition.
The QQmlEngine class provides an environment for instantiating QML components.
QVariant read() const
Returns the property value.
bool write(const QVariant &) const
Sets the property value to value.
int toInt(bool *ok=nullptr) const
Returns the variant as an int if the variant has userType() \l QMetaType::Int, \l QMetaType::Bool,...
static qreal component(const QPointF &point, unsigned int i)
QApplication app(argc, argv)
[0]