Hi,
I've created a QT project using QtMake and successfully compiled a sample application, which uses QString.
#include <qstring>
#include <cstdio>
#include <vector>
int main(int argc, char **argv)
{
QString str;
std::vector< int > v;
str = "Hello world from QT";
printf("%s\n", str.toLocal8Bit().constData());
return 0;
}
I went through documentation on code completion performing all the steps, including full retag of the workspace
and I can't get code completion working for QString. When I type 'str.' nothing happens. When typing '#include <' and
hitting Ctrl+Space a list pops up but it does not contain qstring.h.
My global include parser path is:
C:\wxWidgets-2.8.10\include
C:\MinGW-4.4.1\include
C:\MinGW-4.4.1\lib\gcc\mingw32\4.4.1\include\c++
C:\Qt\2010.02.1\qt\src\corelib\tool //it's where QString resides
My global exclude parser is:
C:\wxWidgets-2.8.10\include\univ
C:\wxWidgets-2.8.10\include\unix
C:\MinGW-4.4.1\lib\gcc\mingw32\4.4.1\include\c++\debug
The workspace parser paths are empty.
I have CodeLite rev.4059, my machine is Windows XP.
Regards,
Paul
QT and code completion
-
- CodeLite Enthusiast
- Posts: 22
- Joined: Sat Mar 06, 2010 1:43 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: QT and code completion
Your path is wrong.
You should set it to:
Retag your workspace and it will work.
Eran
You should set it to:
Code: Select all
C:\Qt\2010.02.1\qt\include\QtCore
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 22
- Joined: Sat Mar 06, 2010 1:43 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: QT and code completion
Indeed.
Thanks!
Thanks!