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
 Problems in VS2005
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

spiff
New Member

2 Posts

Posted - Jan 21 2006 :  6:35:00 PM  Show Profile  Reply with Quote
Using VAX 10.2.1438.0, VS 2005, C++, and Trolltech Qt 4.1. There seems to be problems with getting VAX to resolve the Qt library classes. The problem might be how the Qt header files are organized.

For example:
#include <QHeaderView>

which contains:
#include "qheaderview.h"

which contains:
#include "../../src/gui/itemviews/qheaderview.h"

If I #include <qheaderview.h>, which is in .../src/gui/itemviews, then VAX correctly handles my usage of the QHeaderView class. The same is also true if I open <qheaderview.h> and use the VAX "Reparse Current File" option.

It doesn't appear to be a path problem. VAX knows where all of the #include files are; I can click on the #include statement in each of the files and use Alt+G to open the files.

I have tried using the "Rebuild Symbol databases" and "Clear History, cache and temporary files" options, but they do not have any affect. In fact, when opening my solution in VS, I don't see any messages in the status bar indicating VAX is parsing the Qt headers. I see it parsing the headers from my projects, but not Qt's.

Lastly, I have tried adding the Qt directories to the "Stable include files" and "Other include files" lists on the C/C++ Directories tab. This had no affect.

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Jan 22 2006 :  2:44:22 PM  Show Profile  Reply with Quote
the best way of telling VA about the Qt include directories is to use IDE tools menu -> options -> projects -> VC++ directories -> show directories for include files

and add the directories to this list. can you try adding all of the directories:

%QTDIR%
%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\\QtNsPlugin
%QTDIR%\\include\\QtOpenGL
%QTDIR%\\include\\QtSql
%QTDIR%\\include\\QtXml

to this list. this assumes that you have the environment variable QTDIR set to the appropriate base directory. once you have added these directories they will show up in VA's directory list in the Win32 list, so there is no need to use the custom list.

i have seen VA working with Qt 4, so you should not be having these problems.

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

spiff
New Member

2 Posts

Posted - Jan 22 2006 :  5:17:46 PM  Show Profile  Reply with Quote
Thanks. I did that and the directories do show up in the Win32 list. However, doing the Rebuild did not seem to process the directories. I manually deleted most of the *.tmp and *.idx files in the ...\\Visual Assist X\\vc8 directory and all the files in the "...\\Visual Assist X\\vc8\\cache" directory. After doing that, VAX reparsed all of the files when I restarted VS and loaded my solution.

Bottom line is that it's working now. Thanks.
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