Qt Examples run in QtCreator but not in VS2005
-
Hello,
I am having some trouble trying to run a QML based Qt Example (from the examples directories) in Visual Studio 2005.
This is what I have:
*A compiled source code in VS2005.
*VS Addin to open .pro
*Qt Examples obtained from the Qt SDK installationWhat I am doing is that I open VS2005 and through the Qt Addin I chose the option to open a Qt Project File(.pro), then the Solution is loaded into Visual Studio.
Later, I build the solution succesfully using Debug/Release (Both builds just fine).And when I try to run the solution example I just get a Window (with the Maximize, Minimize and close buttons) and the application backgorund is in blank, totally a white background.
Now If I try to open, build & run the same example using Qt Creator this builds&Runs like a charm.
Any Ideas ?
thanks in advance -
[quote author="koahnig" date="1346780729"]Do you use also msvc2005 as tool chain with creator?
If yes, you need to check for differences in compile settings. [/quote]What do you mean? I think I don't understand the part of the "tool chain with creator".
I am just opening the .pro in VS2005 through the AddIn, wait for the adaptation to VS and then Build & Run.
Maybe I must check the compile settings inside VS2005 project and compare it to the compile settings in Creator.
Thanks for your reply.
-
Qt creator is just an IDE and may be used with different tool chains (compiler, debugger, etc). An SDK installation of Qt creator typically comes with the Mingw tool chain. That is part of the package. However, some people like to use Qt creator with the compiler, linker and stuff from msvc. For the latter case you would basically use the same compiler and linker with two different IDEs. The only logical difference should be the compile settings used.