Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); //падает при выполнении этой сточки
- QObject *rootObject = engine.rootObjects().first();
- QObject *chat = rootObject->findChild<QObject*>("chat");
- QVariant text2 = chat->property("text");
- qDebug() << chat->setProperty("text", text2.toString() + "ntest");
- Text {
- id: chat
- objectName: "chat"
- width: 689
- height: 378
- color: "#cdcccc"
- text: qsTr("Dialog started at " + time)
- leftPadding: 2
- wrapMode: Text.WrapAnywhere
- font.pixelSize: 18
- }
Add Comment
Please, Sign In to add comment