Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Issues when using Qt Quick Compiler (Qt 5.5.0 for Embedded)
Forum Updated to NodeBB v4.3 + New Features

Issues when using Qt Quick Compiler (Qt 5.5.0 for Embedded)

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 854 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.
  • D Offline
    D Offline
    dailydols
    wrote on last edited by dailydols
    #1

    Are there tutorials on how to efficiently work with the Qt Quick Compiler?
    Or are there recommended coding styles to get the most advantage from it?

    I got the Qt Quick Compiler 3.x (later referred to as 'QtQC') running for our i.MX53 board, great (see here).
    But new issues occurred concerning imports in QML and the expected performance gain, not so great.

    Problem 1: It appears to have become necessary to put namespaces onto imports in QML files, even for files in the same folder. Otherwise some classes where not found on program start.
    Solution:
    import "../common"
    should be turned into something like
    import "../common" as Common
    import "./" as Local
    and all used classes need to be prefixed with Common.MyClassAor Local.MyClassB.

    After this restructuring, the program startet as if it was built without QtQC, fine.

    Problem 2: No notable performance gain, the program takes about two minutes (!) until it is operable, which is about the same time as without QtQC.
    Solution attempt: Maybe dynamic creation of objects with Loaders and 'createComponent' cause unclear dependencies during compile time and force the program to recompile all QML code behind the given URLs on program start?
    So I removed all occasions of those and replaced them with static instances of all needed classes, so all dependencies are clear during compile time.
    But still no speed-up, program still takes about two minutes to start.

    Any suggestions?

    Regards,
    Konstantin Dols

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The Qt Quick Compiler being a Licensed Feature, you should try to contact the Qt Company directly through your Qt Account page. You can also try the interest mailing list

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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