views:

1482

answers:

3

I use QT 4.4.2 in Visual Studio 2008.

When I am writing code, IntelliSense seems to die - it does not show any methods or data members in QT objects such as QPushButton, does not see the QObject::connect static method, etc.

Is it a typical situation or did I do something wrong while installing the library?

+8  A: 

Most likely non-standard extensions like public slots: etc.

There's already a FAQ at the Qt site: Intellisense does not work for my Qt application. What's wrong?

tstenner
it`s OK now - I used Qt->Update IntelliSense
chester89
of course, Project->Update Intellisense - I mixed up menu buttons:)
chester89
+2  A: 

You need to tell Intellisense about the QT include directories. This can be found by going to Tools -> Options -> Projects and Solutions -> VC++ Directories . Add them to the Show Directories for: Include Files list on the right. I don't know if the QT installation does this by default or not.

Also, make sure that your VS Project files have the QT include directories as part of the Additional Include Directories under C/C++ General settings. (Although you probably have this already if you can successfully compile).

Dashogun
+1  A: 

Switch to VisualAssist. It is the must anyway.

Sergey Skoblikov
and my project will grow faster). visual assist is a little bit more powerful than Intellisense itself, the difference is just VA is a plugin for VS:)
chester89
see Visual Assist / Qt tips at http://blog.wholetomato.com/2008/11/20/using-qt-44-with-visual-assist-x/
sean e