Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 QT Headers don't parse in VS 2003 .NET

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Grushenka Posted - Jan 17 2007 : 2:31:09 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
Grushenka Posted - Jan 17 2007 : 4:50:08 PM
(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.
feline Posted - Jan 17 2007 : 3:10:02 PM
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

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000