Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » no completion of Qt classes
no completion of Qt classes [message #198690] Tue, 31 July 2007 18:49 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Mike Jackson is currently offline Mike JacksonFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Clear indexer cache
Next Topic:Can .Launch files be available immediately after an install, and NOT in a workspace folder ?
Goto Forum:
  


Current Time: Sat Nov 02 18:31:32 GMT 2024

Powered by FUDForum. Page generated in 0.03408 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top