Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How develop QT project with Eclipse CDT?

Tags:

c++

eclipse

qt

The QT's Eclipse——integration plugin has been invalid.

Is there any method that we can just build a project involved QT within the Eclipse CDT?

Like , I got the QT's library and header files and the moc , then if I just design the GUI with code , I can directly debug and compile the QT project in the Eclipse CDT .

Is there any solution ? I see the NetBeans can do this ,but it seems just support to QT4 but not to QT5

thanks .

like image 434
cyberpunker Avatar asked Feb 18 '26 16:02

cyberpunker


1 Answers

You can just add Qt headers and libs directories as global Eclipse paths for C++ includes directories and for libraries.

For Qt 5 it's folders include and lib in the root Qt installation folder.

[Updated] Because to generate correct makefiles from .pro file you need to run qmake everytime, I suggest to look into the direction of custom build commands.

Also here it's not recommended to try to do this directly.

like image 176
Max Go Avatar answered Feb 20 '26 04:02

Max Go



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!