Russian Qt Forum

Qt => Qt Quick => Тема начата: Ildar от Января 09, 2014, 12:21



Название: Applying QML Changes at Runtime
Отправлено: Ildar от Января 09, 2014, 12:21
Здравствуйте!

В документе http://doc.qt.digia.com/qtcreator/creator-debugging-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.
Но у меня это не работает - поведение окна не меняется!
Пробовал изменять различные свойства в следующем коде:

Код
Javascript
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

С уважением, Ильдар.