[MacOSX,eclipse CDT]want eclipse to know Qt classes
Hello,
I have recently installed Qt4.3, then eclipse CDT.
I would like to make Qt projects having classes recognizes by eclipse (with code completion), but now it's impossible: eclipse does not compile this example:
Code:
#include <QApplication>
#include <QFont>
#include <QPushButton>
int main(int argc, char* argv[])
{
quit.resize(75, 30);
QObject::connect(&quit,
SIGNAL(clicked
()),
&app,
SLOT(quit
()));
quit.show();
return app.exec();
}
I think that eclipse is bad-configured, and I'm in search of a tutorial which says what to append to the linker path, or to the compiler path (I found such a tutorial a few days ago but since I lost it and I can't retrieve it).
I tried to follow another tutorial (Qt in 10 steps) but without any success: I created a project, copied the example above, copied a example.pro file from the tutorial, and created targets, but I have an error message saying the file example.pro is not reacheable...
anyway, I prefer the first tutorial.
thank you,
lolveley.
1 Attachment(s)
Re: [MacOSX,eclipse CDT]want eclipse to know Qt classes
Here is a screenshot of eclipse.
lolveley.
Re: [MacOSX,eclipse CDT]want eclipse to know Qt classes
See the Qt Eclipse Integration on Trolltech.com.
Eclipse is pretty hard to be configured manually.
Regards
Re: [MacOSX,eclipse CDT]want eclipse to know Qt classes
no, that is not possible; I tried but the plugin is for windows and linux, not for MacOSX: it does not work on macs.
lolveley.
Re: [MacOSX,eclipse CDT]want eclipse to know Qt classes
could you show me the way to configure eclipse, marcel?
Re: [MacOSX,eclipse CDT]want eclipse to know Qt classes
I would help, but I never configured it on Mac.
Didn't know that the integration isn't available.
But from the errors looks like Eclipse is missing the Qt include dirs.
Try setting them and also make sure that $QTDIR is pointing to your installation and $QTDIR/bin is in the path.
But, even if you manage to get rid of those errors, you will further have problems with moc and ui. Eclipse won't know to call them automatically for the right files.
Here's a thread that might help you: http://lists.trolltech.com/qt-intere...ad00518-0.html.
Regards
1 Attachment(s)
Re: [MacOSX,eclipse CDT]want eclipse to know Qt classes
here is a photograph of the directory /developer/applications/qt: there is no /bin available.
I don't know if this is important.
Re: [MacOSX,eclipse CDT]want eclipse to know Qt classes
don't you think the configuration of eclipse on a mac is the same that the one on windows?
I think we could try.