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

Without singleton line in qmldir, accessing MySingleton.baseUrl results in weird behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.2
    • QML: Compiler
    • None

      That's what I got:

      qml: XHRWrapper: POST qrc:/components/network/api/undefined/order/overdue
      XMLHttpRequest: Unsupported method used on a local file
      qml: authenticated: on[Error]
      qml: authenticated: on[LoadEnd]
      

      Forgetting singleton line in qmldir may result in pretty weird things happening. Instead of API server's baseUrl we somehow got this qrc:/components/network/api/undefined there. What the heck

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes