[solved] QHash's insert() wrong use? --> VS-Debugger showed botch data due to missing Qt-Addon for VS
-
Glad to hear it worked out in the end!
If you really want to use Visual Studio as your IDE, I would definitely recommend installing the Qt Visual Studio Addin. But then, I cannot really see any good reason for using Visual Studio for Qt development at all. Qt Creator is IMO a much nicer IDE in pretty much every aspect, even for pure C++ development without Qt. But that's (at least partly) a matter of taste, I guess. -
[quote author="huckfinn" date="1309876721"]
Back to my problem. Seem to be solved!
I work with Visual Studio, but without the Qt-addon. SO I 've heard that VS's Debugger somtimes can not interpret Qt typical objects. In real, everything seem be alright, but the debugger shows botched data.
[/quote]This add on also adds some additional info to the debugger file autoexp.dat which is used by the debugger to exand classes ti user readable stuff. If those additions are missing, it is hard to read Qt classes...
-
[quote author="ZapB" date="1309876995"]Yes or use Qt-creator for Qt projects instead of MS Visual Studio.[/quote]
I use onyl QtCreator, when developing at home. At work, I also would like to develop with Qt Creator, but the Projects are for VS as they told me.
It is a big project; which I had to generate with cmake2.8.
In cmake I only could select VS 6, 7, 8, 9 etc. Eclipse CDT, CodeBlocks, and some other IDEs etc.
But no QT :(If there is a way to export that project for Qt, please let me know. Thank you!
-
Qt-creator has cmake project support. From memory just open qt-creator then go to File->Open File or Project and choose the CMakeLists.txt. You will then be asked by the import wizard to choose a build location etc. Qt-creator will then run cmake for you and populate the project tree etc. Give it a try and see how you get on.