Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Applying QML Changes at Runtime

$
0
0
Здравствуйте! В документе http://doc.qt.digia.com/qtcreator/cr…gging-qml.html сказано, что во время отладки можно изменять содержимое QML файла, и эти изменения должны немедленно примениться после сохранения: Applying QML Changes at Runtime If you change property values or add properties in the code editor, the debugger can update the properties in the running application when you save the file. This is enabled by default. To disable it, click the “Apply Changes on Save button” (Apply Changes on Save) button on the toolbar. Но у меня это не работает – поведение окна не меняется! Пробовал изменять различные свойства в следующем коде: import QtQuick 2.0   Rectangle {     width: 360     height: 360     color: "yellow"       Text {         id: t1         anchors.centerIn: parent         text: "Hello World!"     }       MouseArea {         anchors.fill: parent         onClicked: {             t1.text = "HI!"         }     } } В настройках проекта включена отладка QML, так что я не знаю, в чем может быть проблема. У меня Qt Creator 3.0.0, Qt 5.2.0, Ubuntu 13.04. С уважением, Ильдар.

Viewing all articles
Browse latest Browse all 13965

Trending Articles