I don't use VS2008 but the compiler is really irrelevant here. The elastic nodes example works fine and that's the sufficient proof that the method gets called.
I don't use VS2008 but the compiler is really irrelevant here. The elastic nodes example works fine and that's the sufficient proof that the method gets called.
nileshsince1980 (8th April 2010)
This is just a wild guess, but could it be that the release version of your program version loads the 4.6 Qt dlls at runtime? That would explain the effect. Check your paths or debug the release version in MSVC and check the output pane.
EDIT:
This also explains the problems with levelOfDetails, because this variable isn't set anymore in 4.6.
There were some major performance tweaks of the Graphics View Framework between 4.5 and 4.6 and the Qt developers decided to change the default behaviour to "Don't pay for what you don't use". This means that any code relying on items sending updates of their position, or using levelOfDetail will not work as expected with the 4.6 dlls.
Last edited by spud; 7th April 2010 at 13:43.
nileshsince1980 (8th April 2010)
Hi All,
Thanks for your suggestion.
After taking lot of trial and error, I have got the solution of this Release version problem. On my computer, whenever I use to run 'ElasticNodes' example from QtDemo.exe then it runs fine & when I run that same exe ('ElasticNodes') from clicking on it from Windows Explorer it is not running as per expected.
So when I copied my QT app's exe into Qt's bin folder & then executes from bin dir. then it runs fine. So I changed PATH variable & set QT's bin dir. path at very first position (i.e. PATH=C:\Qt\bin; %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;<other paths> ). Now it works fine.
It might be because of some Release version DLLs clashing with other path’s present in PATH variable.
Last edited by nileshsince1980; 8th April 2010 at 06:33.
Hi All
I got the exact cause for Release version. I had installed MIKeTex 2.8 which intern installs Qt's some Dlls ( I dont know how ? but the DLLs are find in MIKTEx2.8 bin's dir. are QtCore4.dll, QtGui4.dll, QtScript4.dll, QtXml4.dll) into its bin folder. and in my PATH variable MIKTex2.8's bin dir. path is stored before QT's bin dir. path.
So for Release version my QT app used to take DLLs from MIKTex2.8's bin dir rather than QT's bin dir.
Thanks,
Nilesh
Bookmarks