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

Remote loading ui files in Qml fails to load from existing directory

    XMLWordPrintable

Details

    • All
    • a22bd4164e (qt/qtdeclarative/dev) a22bd4164e (qt/tqtc-qtdeclarative/dev) 61e269ded1 (qt/qtdeclarative/6.4) 56e868bc5e (qt/qtdeclarative/6.3) 56e868bc5e (qt/tqtc-qtdeclarative/6.3) 61e269ded1 (qt/tqtc-qtdeclarative/6.4)

    Description

      Qml Engine fails to load while loading by remote url. It works fine while loading normally by qrc.

      // Test.qml
      import QtQuick 2.10
      TestForm {
      }
      
      // TestForm.ui.qml
      import QtQuick 2.10
      Item {
      }
      
      

      Workaround:

      // Test.qml
      import QtQuick 2.10
      import "." as This
      This.TestForm {
      }
      

       

      EDIT

      Better workaround: Add qmldir file to the same folder where the Test.qml file exists

      // Test.qml 
      
      import QtQuick 2.10 
      TestForm { 
      
      } 
      
      
      // TestForm.ui.qml 
      
      import QtQuick 2.10 
      Item { 
      
      } 
      
      
      // qmldir
      
      TestForm 1.0 TestForm.ui.qml

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              elendilm Muhammed Muneer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes