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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: QML: Compiler
    • Labels:
      None

      Description

      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

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes