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

A request to add a possibility to load QML Singletons when the module is loaded.

XMLWordPrintable

      This is a request to add the possibility to load QML Singletons when the module is loaded.
      For now, you will need to call the Singleton when the app is created for it to be loaded:

       

      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")

          Component.onCompleted:

      {         console.info("window is ready")         // Load the singleton (unfortunately we cannot force it to load on import)         if(SingletonTest);     }

      }

        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
            mahdi.belila Mehdi Belila
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes