Using Qt 4.4 with Visual Assist

If you are using Visual Studio with Qt, you can ensure a more productive experience by adding the Qt directories to your Visual Studio list of includes.

In Visual Studio, add the following directories to the Win32 Platform Include files list (Tools|Options|Projects and Solution|VC++ Directories):

  • $(QTDIR)\include
  • $(QTDIR)\include\Qt
  • $(QTDIR)\include\QtCore
  • $(QTDIR)\include\QtGui
  • $(QTDIR)\include\QtHelp
  • $(QTDIR)\include\QtNetwork
  • $(QTDIR)\include\QtOpenGL
  • $(QTDIR)\include\QtScript
  • $(QTDIR)\include\QtSql
  • $(QTDIR)\include\QtSvg
  • $(QTDIR)\include\QtTest
  • $(QTDIR)\include\QtUiTools
  • $(QTDIR)\include\QtWebKit
  • $(QTDIR)\include\QtXml
  • $(QTDIR)\include\QtXmlPatterns
  • $(QTDIR)\src

Make sure that the QTDIR environment variable has been defined (or else manually substitute the Qt directory for $(QTDIR) in the list items).

In the VA X Options dialog, Platform should be set to Win32 (VAssistX|Visual Assist X Options|Projects|C/C++ Directories).

VA X will parse included Qt header files the next time you open a solution that uses Qt.  If you have the Stable symbols in italic option enabled, Qt symbols will be displayed in italics.

6 thoughts on “Using Qt 4.4 with Visual Assist

  1. Pingback: How to: Setup Qt 4.5 Visual Studio Integration - dcsoft

  2. Pingback: Use QT4 in VS2005 « Osess’s Blog

  3. Pingback: How to: Setup Qt 4.5+ Visual Studio Integration « dcsoft

  4. Pingback: Introducción Qt « ZERO

    • Property sheets are used in VS2010 instead of the IDE Options dialog for setting ‘system’ include directories. Use the Property Manager to edit property sheets: View | Other Windows | Property Manager. Edit the Microsoft.Cpp.Win32.user property sheet (or create a new property sheet just for Qt projects). Once you open the Properties dialog of the property sheet, you can find VC++ Directories under Common Properties.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s