Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can we improve the start time of Qml application?
Forum Updated to NodeBB v4.3 + New Features

How can we improve the start time of Qml application?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 416 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    balakrishnarao.ms
    wrote on last edited by
    #1

    The main window Qml that we load initially consist of stacked widget layout along with many other Qml instances present in the application. The visibility of these instances gets changed on basis of certain UI events triggred by the user.
    This initial Qml window takes quite long time (~5-6 seconds). Kindly suggest if there are any alternative to reduce the start time of the application.

    J.HilkJ 1 Reply Last reply
    0
    • B balakrishnarao.ms

      The main window Qml that we load initially consist of stacked widget layout along with many other Qml instances present in the application. The visibility of these instances gets changed on basis of certain UI events triggred by the user.
      This initial Qml window takes quite long time (~5-6 seconds). Kindly suggest if there are any alternative to reduce the start time of the application.

      J.HilkJ Online
      J.HilkJ Online
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @balakrishnarao-ms

      • move any and all logic to c++ only do gui stuff in qml
      • Use Loaders and only load what you're currently want to show
      • Use Dynamic/asynch loading for loaders and Images

      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      jeremy_kJ 1 Reply Last reply
      3
      • J.HilkJ J.Hilk

        @balakrishnarao-ms

        • move any and all logic to c++ only do gui stuff in qml
        • Use Loaders and only load what you're currently want to show
        • Use Dynamic/asynch loading for loaders and Images
        jeremy_kJ Offline
        jeremy_kJ Offline
        jeremy_k
        wrote on last edited by
        #3

        @J-Hilk said in How can we improve the start time of Qml application?:

        @balakrishnarao-ms

        • move any and all logic to c++ only do gui stuff in qml
        • Use Loaders and only load what you're currently want to show
        • Use Dynamic/asynch loading for loaders and Images
        • Use Creator's QML profiler to determine where time is spent.

        Asking a question about code? http://eel.is/iso-c++/testcase/

        JKSHJ 1 Reply Last reply
        1
        • jeremy_kJ jeremy_k

          @J-Hilk said in How can we improve the start time of Qml application?:

          @balakrishnarao-ms

          • move any and all logic to c++ only do gui stuff in qml
          • Use Loaders and only load what you're currently want to show
          • Use Dynamic/asynch loading for loaders and Images
          • Use Creator's QML profiler to determine where time is spent.
          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          @jeremy_k said in How can we improve the start time of Qml application?:

          @J-Hilk said in How can we improve the start time of Qml application?:

          @balakrishnarao-ms

          • move any and all logic to c++ only do gui stuff in qml
          • Use Loaders and only load what you're currently want to show
          • Use Dynamic/asynch loading for loaders and Images
          • Use Creator's QML profiler to determine where time is spent.
          • Use the Qt Quick compiler to compile your QML/JS code to C++: https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          jeremy_kJ 1 Reply Last reply
          0
          • JKSHJ JKSH

            @jeremy_k said in How can we improve the start time of Qml application?:

            @J-Hilk said in How can we improve the start time of Qml application?:

            @balakrishnarao-ms

            • move any and all logic to c++ only do gui stuff in qml
            • Use Loaders and only load what you're currently want to show
            • Use Dynamic/asynch loading for loaders and Images
            • Use Creator's QML profiler to determine where time is spent.
            • Use the Qt Quick compiler to compile your QML/JS code to C++: https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html
            jeremy_kJ Offline
            jeremy_kJ Offline
            jeremy_k
            wrote on last edited by
            #5

            @JKSH said in How can we improve the start time of Qml application?:

            @jeremy_k said in How can we improve the start time of Qml application?:

            @J-Hilk said in How can we improve the start time of Qml application?:

            @balakrishnarao-ms

            • move any and all logic to c++ only do gui stuff in qml
            • Use Loaders and only load what you're currently want to show
            • Use Dynamic/asynch loading for loaders and Images
            • Use Creator's QML profiler to determine where time is spent.
            • Use the Qt Quick compiler to compile your QML/JS code to C++: https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html
            • Port to QSkinny!

            Asking a question about code? http://eel.is/iso-c++/testcase/

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved