ways to publish QT Quick desktop applications
qt 5 qt application, So I took a little time to introduce how to publish qt desktop application.
Shanghai Meng Meng Information Technology Co., Ltd. (Weibo:Http://weibo.com/qtdreamoriginal article, starting address:http://qtdream.com/topic/114. Welcome to come to discuss the peer.
The previous article describes how to quickly and easily publishQt Widgetsapplication. CurrentlyQt Widgetsis aQt 4of technology, then to theQt 5, the official of course is vigorously promotedQt Quick, so we find a lot of people who want to knowQt Quickis how the application is published, and the publicationQt Quickprogram, there are still a lot of noteworthy places, otherwise everyone is easy to get stuck in the pit, so this article is to help you solve the releaseQt Quickproblems encountered by the application.
1, !--[Endif]--> Create a qt quick project, here we name the project testqtquickapp : Span style= "Mso-spacerun: ' Yes '; font-family: song body; Mso-ascii-font-family:calibri;mso-hansi-font-family:calibri; Mso-bidi-font-family: ' Times New Roman '; font-size:10.5000pt;mso-font-kerning:1.0000pt; >
2, !--[Endif]--> > The rest is not set, roughly the same. Finally, this program in qt creator ran smoothly, The result of the operation is as follows:
3. Well, if I want to publish the Hello World Program, is there any good way? Yes. As with the Widgets Program, we just need to set the parameters in the Qt Creator :
qt Span style= "FONT-FAMILY:CALIBRI;" >QML The dependencies are copied over. This time we are in windows xp try it on. Unexpectedly, a dialog box appeared:
msvcrt.dll in XP vsprintf_s such a dynamic library. At present, there is no good solution to the idea, and later I will study it alone, see how this thing to solve.
However, even if such a dialog box appears, it is not a hindrance. Our Hello world program still has the ability to open:
In particular, it is important to note that evenWINDEPLOYQTsuch a method addsQt Quickprogram dependencies, we found that on the target system, the double-click still cannot display the interface. What is the reason for this? Turns out,WINDEPLOYQTdo is only "superficial" work, becauseQtthe complexity of the dependencies of each module,WINDEPLOYQTis not included in the. For example, yourQt QuickThe program turns out to beLocal Storagemodule, it may only beLocal Storagethe reliance on replication came over, in fact,Local Storagedepends on theQt5Sql.dll, but this has not been introduced. That's why some modules don't work, which is why many people deploy programs as described above and still can't run programs smoothly. A better solution is to even if your program is mostly usedQMLlanguage, which is written inmain.cpp, add a similar#include <QtSql>so dependent,Profiles are addedQT + = SQLsuch a reliance, so that it will be able to smoothlyQt5application is deployed to the client machine.
qt 5.5 most famous example program Span style= "FONT-FAMILY:CALIBRI;" >planets deploy to customer 2006 year purchased windows xp machine. Look at the effect.
Figure I:Windows ten effects
Figure two: effects on customer Windows XP
Ways to publish QT Quick desktop applications