PDA

View Full Version : Qt 4.2.3 on Windows XP (SP2)



macbeth
19th March 2007, 11:10
Hello everyone,

has anybody tried to use the newest stable Qt (4.2.3) on Windows? I compiled one version from sources using visual studio compiler according to instructions here (http://wiki.qgis.org/qgiswiki/Building_QT_4_with_Visual_C++_2005) and I also installed Qt-mingw (4.2.3) and build debug and other libraries.
The problem is, that MDI is not really working :/ I use it in my application and the child windows are not visible, or I see just bottom of the window as you can see here (http://www.ms.mff.cuni.cz/~fabip4am/big/fun/mdi.png).
The functionality seems to be ok, because when I click somewhere on the window and start typing, the text appears in the bottom part (after writing enough lines) and I can also move the window by clicking on its titlebar (or the place where it should be)...

Other examples seems to work, so it looks quite strange to me...

Thank you beforehand

jacek
19th March 2007, 13:27
Do you have windows xp or vista?

macbeth
19th March 2007, 13:32
Windows XP with SP2, just like I wrote in the title :)

jacek
19th March 2007, 23:53
Windows XP with SP2, just like I wrote in the title :)
I just wanted to be sure, since it looks a bit "different". There are some problems with Qt 4.2.3 on vista and it looks like they're might be present on xp too. As soon as my cat wakes up, I will get my laptop and check how it behaves on my system.

macbeth
20th March 2007, 00:18
Thanks, jacek.

It looks a bit different, because I am using Vista inspirat pack (one of those UI tweakers). The only thing I think could possibly cause the problem is a mixup of libraries compiled with MS Visual Studio compiler and mingw, but as far as I know, all the paths are set ok...

jacek
20th March 2007, 00:46
The only thing I think could possibly cause the problem is a mixup of libraries compiled with MS Visual Studio compiler and mingw, but as far as I know, all the paths are set ok...
Could be. Does it look OK if you start the mdi example from "Qt 4.2.3 Command Prompt"?

I've just checked it on my system and it seems to work fine.

macbeth
20th March 2007, 01:24
Yes, I've already tried that. It looks like the screen I linked in the first post. Hm... maybe I try to turn off these UI tweaks and recompile Qt with mingw after removing the one compiled with visual studio... I'll let you know if that helps... ;)

jacek
20th March 2007, 01:31
recompile Qt with mingw after removing the one compiled with visual studio...
You can use Dependency Walker (http://www.dependencywalker.com) to see which DLLs it tries to use.

GreyGeek
20th March 2007, 02:55
I just moved to a DELL Latitude D620 with XP SP2 plus the latest updates and I am using VS 2003 .NET with QT 4.2.3 commercial.

I am having no ui problems, or any problems at all.

I have Qt 4.2.3 installed on Linux, SimplyMEPIS 6.5 RC2, and the same app compiles and runs perfectly on it, too.

macbeth
20th March 2007, 03:40
Well, thank you for helping me to find the cause of the problem.
Jacek, you reminded me of one Java app, which had problems drawing GUI, too and then I tried to turn off the Vista Inspirat upgrade and it worked. So it was the same with Qt and its mdi. I tried both versions (MSVC compiled and mingw compiled) and they work. :) There wasn't any problem with libraries mixup...

Conclusion: Don't use Vista Inspirat (http://www.crystalxp.net/galerie/en.id.130.htm) pack & Qt using MDI, or you may witness some strange behaviour...

Thank you guys...

Sergey B.
27th March 2007, 15:03
error post