Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Installation help (noob)
Hi, Ted here.
I'm a real noob and have never used an external library.
I have MS Visual Studio 2010 installed (not express) on Win 7 32
I have downloaded the following files...
Qt 5.2.0 for Windows 32-bit (VS 2010, 570 MB) (Info)
Visual Studio Add-in 1.2.2 for Qt5
I just need to know some basics before I try to install and mess it all up.
For example, do the setup files need to be in any particular folder or drive relative to my MSVS installation?
What do I install first, the add-inn or the package?
I'm just after best practice tips and stuff like that.
Appreciate any advice that anyone has the time to offer.
koahnig last edited by
Hi Ted, welcome to devnet
In general it should not matter where you are holding the downloaded installation files before installation. Typically, you will have those files in the download folder of your internet browser. It should be fine to install from there. AFAIK the by the installer suggested target locations are also fine. In my opinion the safest way to install anyhow.
Note: that you cannot move the installed files and libs to another folder later on, since these folders are part of some exes.
Thank you very much for your response Koahnig.
I successfully installed both packages.
I just have absolutely no idea what to do next :/
In visual studio I started a new vc++ project and seen a new QT5 entry on the tool bar, also under Tools->Add-in Manager, QtAdd-in 1.2.2 is present.
I found a simple code after a web search, to display a simple window using QT.
The first lines were as follows
But the VS IDE tells me it cannot find those headers, and after I search my computer, neither can I.
I'm very confused here, because like I said I've never used anything outside of what comes with VS 2010, and I've been learning to code for close to a year now.
I can create standard windows using the windows API, but just hoping someone might have a little time to explain what I'm missing or doing wrong.
Thank you for reading.
I did see one warning during installation which I'm unsure has anything to do with my failings.
RegAsm : warning RA0000 : Registering an unsigned assembly with /codebase can cause your assembly to interfere with other applications that may be installed on the same computer. The /codebase switch is intended to be used only with signed assemblies. Please give your assembly a strong name and re-register it. .
bq. Types registered successfully.
koahnig last edited by
I have used msvc a while ago with Qt4 version. Actually it was msvc 2005 with vsaddin.
Typically, it should be easier to start with a project generated in your IDE (msvc2010 in your case). msvc provides you also the possibility to generate a brand new project. There should be an entry allowing you to create Qt5 project.
If you like to import another project as you tried to do, you probably have to use somewhere in the new Qt5 menu you see in msvc to import this project. If you have a complete Qt project, it should have a <project name>.pro file. This is the file you have to import through vsaddin (through the new menu entry, you have already noticed).
That is all I remember and I hope it helps.
Yes, thanks once again, that info has me further ahead.
For reference I'd like to add I found "this blog":http://sinairv.wordpress.com/2011/07/04/how-i-built-my-first-qt-application-in-visual-studio-2010/ helpful too after encountering my next problem which was...
bq. Unable to find a Qt build!
To solve this this problem specify a Qt build.