PDA

View Full Version : New to QT and have a few questions.



vbman213
31st January 2010, 23:45
I have just installed the latest build of QT 4 and have played around with it a little.

I'm a 13 year Visual Basic 6 veteran and my only experience with "C++" style syntax is from PHP and JavaScript. I can easily adapt to just about any language.

My question is really concerning how to correctly use QT as my programming environment.

How do I deploy my applications properly? Mingwm10.dll not found? Static linking of mingw runtime and QT runtime?

What are best practices for doing this? I've heard that staticly linking instead of dynamic linking can result in multi-megabyte exes (like 8+ mb).

I want to begin using QT as my main IDE and development environment, but I'm not sure of how to successfully do this.

It seems that just setting configuration files for Mingw and the QT environment is a learning curve in itself...

aamer4yu
1st February 2010, 04:47
What did you install ? SDK , or compiled from source code ?
You can install the Qt SDK (http://qt.nokia.com/downloads/sdk-windows-cpp) and use Qt Creator without any hassles.
You can also use Qt with Visual Studio (http://qt.nokia.com/downloads/windows-cpp-vs2008)

lonepsycho
1st February 2010, 06:50
Hi vbman213,

Congrats on joining Qt crowd :)
there ara pros and cons on using Qt with static linking, yet I don't use static linking, I'm deploying all required dll's near my *.exe. in case of missing mingwm10.dll try to look for it in migw bin directory and put it in the same dir where your *.exe is, and don't forget to put all reguired Qt dll's also. And... Qt is not an IDE it's class library, Qt Creator is IDE, Net Beans is IDE, Qt is just not an IDE :)

ChrisW67
1st February 2010, 06:50
How do I deploy my applications properly? Mingwm10.dll not found? Static linking of mingw runtime and QT runtime?
You need to read: Deploying Qt Applications (http://doc.trolltech.com/4.6/deployment.html) and your Qt software license, and then apply it to your distribution situation to answer this question. Just like VB6 you have to distribute dependencies, although they're typically easier to distribute because there's none of the ActiveX registration to worry about.


It seems that just setting configuration files for Mingw and the QT environment is a learning curve in itself...
If you have downloaded the Qt SDK then there's nothing much to set up and you get a working IDE, documentation, demos/examples, and debug environment. If you have decided to build Qt from source on Windows and you don't have a good reason for doing so then I'd suggest grabbing the Qt SDK.