Results 1 to 2 of 2

Thread: Compile QML of Plugins

  1. #1
    Join Date
    Nov 2019
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Compile QML of Plugins

    Is there a way to compile the QML included with plugins (like QtWebEngine, QtQuick.2, etc).

    Overall I am including all of my QML pre-compiled (and in a resource), and the loading speed has been greatly improved.

    However loading a WebPage (initially) is slow (I'm thinking having to compile QML is not helping)... so I'd like to pre-compile the QML that comes with any plugin.

    When running windeployqt.exe (there is no command to have it compile it when it deploys, unfortunately), but is there a way to compile it?

    - RapidMark

  2. #2
    Join Date
    Nov 2019
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Compile QML of Plugins

    Quote Originally Posted by RapidMark View Post
    Is there a way to compile the QML included with plugins (like QtWebEngine, QtQuick.2, etc).

    Overall I am including all of my QML pre-compiled (and in a resource), and the loading speed has been greatly improved.

    However loading a WebPage (initially) is slow (I'm thinking having to compile QML is not helping)... so I'd like to pre-compile the QML that comes with any plugin.

    When running windeployqt.exe (there is no command to have it compile it when it deploys, unfortunately), but is there a way to compile it?

    - RapidMark
    Added this to a deploy script and now I ship with qmlc (and remove the qml).

    Qt Code:
    1. echo Compiling QML
    2. cd qml
    3. for /r %%i in (*.qml) do (echo|set /p="." & qmlcachegen %%i)
    4. echo .
    5. echo Deleting QML
    6. for /r %%i in (*.qml) do (echo|set /p="." & del %%i)
    7. echo .
    8. cd ..
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 1
    Last Post: 4th May 2017, 20:05
  2. Replies: 1
    Last Post: 6th June 2012, 02:41
  3. Replies: 17
    Last Post: 2nd January 2011, 18:11
  4. Mac OS, plugins that user designer plugins
    By Royceybaby in forum Qt Programming
    Replies: 0
    Last Post: 9th May 2010, 02:40
  5. Need to compile with MySQL drivers/plugins
    By mongenix in forum Newbie
    Replies: 5
    Last Post: 6th January 2007, 21:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.