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

Android: Remote loading ui files in Qml fails if extension is ui.qml

    XMLWordPrintable

Details

    • Android

    Description

      Qml engine fails to load ui files in android.

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

      Workaround:
      Drop ui extension by renaming TestForm.ui.qml to TestForm.qml

      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

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              elendilm Muhammed Muneer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes