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

Details

    Description

      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);     }

      }

      Attachments

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes