|
Question:
I am using the Qt toolkit and I cannot see the library definitions or my own definitions that use Qt. Why will my Qt information not tag correctly?
Answer:
This is being caused by a number of #defines that Qt uses. To have the editor tag this correctly, you need to tell SlickEdit® about these defines.
To do this, first go to (Tools > Options > Tagging Options) and click on "C Preprocessing". Now press the "New" button and add "Q_EXPORT" and click "OK".
You will then need to rebuild your tag file that includes the Qt headers. To do this, go to the (Tools > Tag Files) dialog, choose the tag files that includes the headers, and click on "Rebuild Tag File". Make sure that you uncheck the "Retag modified files only" option to retag all of these files, and then click on "OK".
If this does not solve the problem, you may also need to add the path to the Qt includes to your SlickEdit project. You can do this by going to (Project > Project Properties on the "Directories" tab), and double clicking in the "Includes" field to add a new path.
There may be several other #define macros that you need to define like Q_EXPORT. If you find that a class is not working correctly, look for preprocessing like this.
Tagging & Navigation FAQs
FAQ Home
|