Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-3723

Changing the value of a property declared in QML doesn't update it's bindings (Live Preview)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • Qt Creator 2.2.0
    • Quick / QML Support

    Description

      How to reproduce

      import QtQuick 1.0
      
      Rectangle {
          id: root
          width: 360
          height: 360
      
          property string t: "Hello World"
          Text {
              text: root.t
              anchors.centerIn: parent
          }
      }
      

      Changing the "Hello World" string at runtime during debugging doesn't update the text.

      Debugger Log

      Before making the change:

      sStarting debugger 'QmlEngine' for tool chain 'MinGW'...
      dDebugger settings: 
      dUseAlternatingRowColours: false  (default: false)
      dUseMessageBoxForSignals: true  (default: true)
      dAutoQuit: false  (default: false)
      dLogTimeStamps: false  (default: false)
      dVerboseLog: false  (default: false)
      dCloseBuffersOnExit: false  (default: false)
      dSwitchModeOnExit: false  (default: false)
      dUseDebuggingHelper: true  (default: true)
      dUseCustomDebuggingHelperLocation: false  (default: false)
      dCustomDebuggingHelperLocation:   (default: )
      dUseCodeModel: true  (default: true)
      dShowThreadNames: false  (default: false)
      dUseToolTips: false  (default: false)
      dUseToolTipsInLocalsView: false  (default: false)
      dUseToolTipsInBreakpointsView: false  (default: false)
      dUseAddressInBreakpointsView: false  (default: false)
      dUseAddressInStackView: false  (default: false)
      dRegisterForPostMortem: false  (default: false)
      dLoadGdbInit: true  (default: true)
      dScriptFile:   (default: )
      dWatchdogTimeout: 20  (default: 20)
      dTargetAsync: false  (default: false)
      dMaximalStackDepth: 20  (default: 20)
      dShowStandardNamespace: true  (default: true)
      dShowQtNamespace: true  (default: true)
      dSortStructMembers: true  (default: true)
      dAutoDerefPointers: true  (default: true)
      dListSourceFiles: false  (default: false)
      dSkipKnownFrames: false  (default: false)
      dEnableReverseDebugging: false  (default: false)
      dAllPluginBreakpoints: true  (default: true)
      dSelectedPluginBreakpoints: false  (default: false)
      dAdjustBreakpointLocations: true  (default: true)
      dNoPluginBreakpoints: false  (default: false)
      dSelectedPluginBreakpointsPattern: .*  (default: .*)
      dBreakOnThrow: false  (default: false)
      dBreakOnCatch: false  (default: false)
      dState changed from DebuggerNotReady(0) to EngineSetupRequested(1).
      dQUEUE: SETUP ENGINE
      dCALL: SETUP ENGINE
      dNOTE: ENGINE SETUP OK
      dState changed from EngineSetupRequested(1) to EngineSetupOk(3).
      dQUEUE: SETUP INFERIOR
      dState changed from EngineSetupOk(3) to InferiorSetupRequested(4).
      dQUEUE: SETUP INFERIOR
      dCALL: SETUP INFERIOR
      dNOTE: INFERIOR SETUP OK
      dState changed from InferiorSetupRequested(4) to InferiorSetupOk(6).
      dState changed from InferiorSetupOk(6) to EngineRunRequested(7).
      dQUEUE: RUN ENGINE
      dCALL: RUN ENGINE
       Cannot retrieve debugging output!
      sQmlJSDebugger: Connect to debug server 127.0.0.1:3768
      sQmlJSDebugger: resolving host...
      sQmlJSDebugger: connecting to debug server...
      sQmlJSDebugger: connected.
      s
      dJSDebugger sending BREAKPOINTS []
      sQML Debugger connected.
      dNOTE: ENGINE RUN AND INFERIOR RUN OK
      dState changed from EngineRunRequested(7) to InferiorRunOk(11).
      sQmlJSDebugger: Connected to debug service 'QDeclarativeObserverMode'.
      dQDeclarativeObserverMode  sending SET_DESIGN_MODE false
      sQmlJSDebugger: Connected to debug service 'JSDebugger'.
      dQDeclarativeObserverMode  receiving SET_DESIGN_MODE false
      dQDeclarativeObserverMode  receiving CONTEXT_PATH_UPDATED 
      dQDeclarativeObserverMode  receiving CONTEXT_PATH_UPDATED Rectangle
      dQDeclarativeObserverMode  sending OBJECT_ID_LIST 2 [list of debug / object ids]
      dQDeclarativeObserverMode  sending SET_CURRENT_OBJECTS 1 [list of ids]
      dQDeclarativeObserverMode  sending SET_CURRENT_OBJECTS 1 [list of ids]
      

      after the change:

      dQDeclarativeObserverMode  sending CLEAR_COMPONENT_CACHE
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes