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

StackView (Controls 2.0) doesn't work with http url on first try

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • b6cfb4a1e30598a6176f9bbfdbd1495b37c7f59a

    Description

      Documentation clearly states that .push can receive a (network) url
      http://doc.qt.io/qt-5/qml-qtquick-controls2-stackview.html#push-method

      However using network url (on first try):

      StackView {
          Component.onCompleted: push("http://127.0.0.1:8080/test.qml")
      }
      

      produces

      Component is not ready
      

      Which is obviously because component is not yet loaded and created.

      As a workaround one would have to create this component dynamically and wait for ready status, then provide that to StackView

      Attachments

        For Gerrit Dashboard: QTBUG-55749
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            pkoretic Petar Koretic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes