Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 QT Headers don't parse in VS 2003 .NET
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Grushenka
New Member

6 Posts

Posted - Jan 17 2007 :  2:31:09 PM  Show Profile  Reply with Quote
I'm using Visual Assist X 10.3.1543.0 with Visual Studio .NET 2003, version 7.1.3088. I'm working in C++ with commercial QT 4.2.2.

VA seems to have a hard time parsing the various QT headers. Many of my QT classes and symbols show up in black and underlined in red. Generally I can fix this by manually opening the corresponding QT header and closing it again, but the fix only lasts until I reopen the project in Visual Studio.

Some QT classes are parsed correctly--others show up as if they are unrecognized.

I've tried rebuilding the symbol database several times. I can see QT's directories being parsed in the status bar when I restart Visual Studio. My Include Files are set at the Visual Studio level (under Tools, Options, Projects, VC++ Directories, Win32, Include files). Here's my list. Initially it included just $(QTDIR), then I added the subdirectories of \\include, then I tried throwing in \\src. Here's my current list:

$(QTDIR)
$(QTDIR)\\src
$(QTDIR)\\include
$(QTDIR)\\include\\ActiveQt
$(QTDIR)\\include\\Qt
$(QTDIR)\\include\\Qt3Support
$(QTDIR)\\include\\QtAssistant
$(QTDIR)\\include\\QtCore
$(QTDIR)\\include\\QtDesigner
$(QTDIR)\\include\\QtGui
$(QTDIR)\\include\\QtNetwork
$(QTDIR)\\include\\QtOpenGL
$(QTDIR)\\include\\QtSql
$(QTDIR)\\include\\QtXml
$(VCInstallDir)atlmfc\\include
$(VCInstallDir)PlatformSDK\\include
$(FrameworkSDKDir)include

I also tried putting these under "Source files":
$(QTDIR)\\src
$(QTDIR)\\include

Any suggestions? I'm just learning QT, and I'd love to have Visual Assist's magic helping me out with the unknown bits.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jan 17 2007 :  3:10:02 PM  Show Profile  Reply with Quote
That looks correct.

If you look in:
VA Options -> Projects -> C/C++ Directories

are these directories listed?

Have you rebooted the machine since setting the QTDIR environment variable? If not can you try this.
VA does work with Qt, but you will want to read this FAQ:

http://docs.wholetomato.com?W310

zen is the art of being at one with the two'ness
Go to Top of Page

Grushenka
New Member

6 Posts

Posted - Jan 17 2007 :  4:50:08 PM  Show Profile  Reply with Quote
(I forgot to mention that I had already added the QT macros to stdafx.h.)

When I looked at VA Options -> Projects -> C/C++ Directories, I realized that my VA Platform was set for Custom settings, not Win32. Under Custom settings I had a path only to: \\qt\\4.2.2\\include.

As soon as I switched it to Win32 and restarted, VA came alive. QT's class structure is now unfurled. Thanks for the tip.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000