Unsolved Do I need to bundle the Qt core module source code as part of my application. ?
-
I am developing a Windows desktop application and I have followed the windeployqt to package my application bundle. I am going through the Deploying Qt's Libraries and I wanted to understand what this line means:
Unless Qt is part of the system libraries it must be redistributed with your application.
The deployment folder that got generated using
windeployqt
did not bundle any source code. Do we need to bundle the 'Qt core modules' source code when I package my application as per the above statement ? -
@chaithubk said in Do I need to bundle the Qt core module source code as part of my application. ?:
I wanted to understand what this line means:
It only means that for your application to work the Qt libraries (the dlls) of the modules you use need to be present on the target machine. If you're not sure if they're present (and it's definitely not the case on a standard Windows PC) you need to distribute them with your app and windeployqt is the app to help you with that.
Do we need to bundle the 'Qt core modules' source code when I package my application
No, definitely not. If you're using the opensource license (GPL or LGPL) you're only required to provide anyone with the Qt sources you used if they ask for it (and no one ever does as it's just easier to download them from the Qt's repo). You can if you like, but there's absolutely no need to bundle them with your app and since they're quite large your users probably wouldn't want that either.
-
@chris-kawa Thank you for the clarification.
-
@chris-kawa I have one followup question in the same topic, if I use QML in my application then the windeployqt tool also bundles the QML imports in to the application package. Why is that only QML files needs to be distributed with the application?
-
@chaithubk said in Do I need to bundle the Qt core module source code as part of my application. ?:
Why is that only QML files needs to be distributed with the application?
Because, unless you use something like Qt Quick Compiler, the files are actually needed to run the app. QML runtime just reads them and parses them when your app is running.
Have a read about deploying QML here.
-
@chris-kawa Yeah the QML files that are developed for our application we are going to add it to a resource file and bundle it in our application which is fine, but my doubt was about redistribution of the Qt Core modules source code (as part of LGPL or GPL licenses stuff)
Do we need to package the Qt Core QML source files with the application ?
If I don't use the commercial Qt license am I allowed to deploy an QML based application to production ?