Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8623

Reload no longer works in qml runtime

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.7.0
    • None
    • linux-gcc-x86_64 qt-qml:4.7 @ 4f77d4f1bebba1627700037bdfce4e74ad84cce8
    • e1aa5c3

    Description

      The 'Reload' option in the qml binary no longer does anything. Initial investigations indicate that this is due to QDeclarativeView now doing nothing if setSource is called with the same value as the existing source. There does not appear to be any method on QDeclartiveView to reset it, and so some API changes will be needed.

      setSource(QUrl()) was tried, but this does not work out of the box - it gives the result of
      'ASSERT: "unit" in file /home/aalpert/depot/qt/qt-qml/src/declarative/qml/qdeclarativecompositetypemanager.cpp, line 227'
      after the setSource(QUrl()) (but only if setSource had been called before with something non-null).

      If setSource(QUrl()) is supposed to work, then the ASSERT may be a different and genuine bug. Otherwise features will need to be added to QDeclarativeView to allow reloading - so that the qml binary can get this feature back.

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes