no completion of Qt classes [message #198690] |
Tue, 31 July 2007 18:49 |
Eclipse User |
|
|
|
Originally posted by: olivier57b.yahoo.fr
hello,
I am using eclipse CDT europa and Qt4.1.0 on a macintosh.
I can use externals tools (qmake -project and qmake, build) to compile
my C++ projects, and it works.
But I have not the completion, although the libraries are recognized:
with the example :
#include <QApplication>
#include <QPushButton>
int main(int argc,char* argv[]){
QApplication app(argc,argv);
QPushButton* button=new QPushButton("quit");
QObject::connect (button,SIGNAL(clicked()),&app,SLOT(quit()));
button->
if I enter ctrl+space I have :
app: Qapplication
argc: int argv : char*
button:*
Have you got an idea to make it work?
lolveley.
|
|
|
Re: no completion of Qt classes [message #198761 is a reply to message #198690] |
Wed, 01 August 2007 03:14 |
Mike Jackson Messages: 128 Registered: July 2009 |
Senior Member |
|
|
On 2007-07-31 14:49:24 -0400, lolveley <olivier57b@yahoo.fr> said:
> hello,
>
> I am using eclipse CDT europa and Qt4.1.0 on a macintosh.
> I can use externals tools (qmake -project and qmake, build) to compile
> my C++ projects, and it works.
> But I have not the completion, although the libraries are recognized:
> with the example :
>
> #include <QApplication>
> #include <QPushButton>
>
> int main(int argc,char* argv[]){
> QApplication app(argc,argv);
> QPushButton* button=new QPushButton("quit");
> QObject::connect (button,SIGNAL(clicked()),&app,SLOT(quit()));
>
> button->
>
> if I enter ctrl+space I have :
> app: Qapplication
> argc: int argv : char*
> button:*
>
>
> Have you got an idea to make it work?
>
> lolveley.
Do you have all the Qt include paths included in the "paths and
Symbols" section of your CDT project?
So something like Qt/Include/QtCore, Qt/include/QtGui.....
Mike Jackson
|
|
|
Re: no completion of Qt classes [message #198790 is a reply to message #198761] |
Wed, 01 August 2007 08:27 |
Eclipse User |
|
|
|
Originally posted by: olivier57b.yahoo.fr
Mike Jackson a écrit :
> On 2007-07-31 14:49:24 -0400, lolveley <olivier57b@yahoo.fr> said:
>
>> hello,
>>
>> I am using eclipse CDT europa and Qt4.1.0 on a macintosh.
>> I can use externals tools (qmake -project and qmake, build) to
>> compile my C++ projects, and it works.
>> But I have not the completion, although the libraries are recognized:
>> with the example :
>>
>> #include <QApplication>
>> #include <QPushButton>
>>
>> int main(int argc,char* argv[]){
>> QApplication app(argc,argv);
>> QPushButton* button=new QPushButton("quit");
>> QObject::connect (button,SIGNAL(clicked()),&app,SLOT(quit()));
>>
>> button->
>>
>> if I enter ctrl+space I have :
>> app: Qapplication
>> argc: int argv : char*
>> button:*
>>
>>
>> Have you got an idea to make it work?
>>
>> lolveley.
>
> Do you have all the Qt include paths included in the "paths and Symbols"
> section of your CDT project?
>
> So something like Qt/Include/QtCore, Qt/include/QtGui.....
>
>
> Mike Jackson
>
Yes, I have the libraries in the windows "paths and symbols", even in
the three "languages" : assembly source files,GNU C, and GNU C++.
The issue comes from another place.
Regards,
lolveley.
|
|
|
Powered by
FUDForum. Page generated in 0.03344 seconds