Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Qt creator for KDE applications

I want to build some KDE applications. Here's what I did so far:

  1. sudo apt-get install kde-full
  2. add LIBS += -lkdeui in the .pro file of a project which used KDE libraries.

I am using the QtCreator and the above mentioned steps don't seem to be enough. Error message: KApplication: no such file or directory.

What are the steps to configure my system for KDE application development?

like image 328
sudeepdino008 Avatar asked Dec 12 '25 09:12

sudeepdino008


2 Answers

The recommended way to build a KDE project is use CMake, not QMake. I really recommend you this approach because some KDE applications, like plasmoids, can not be build correctly using QMake.

In addition you can use KDevelop, but if you prefer Qt Creator, you can use it with a CMake project without problems.

http://techbase.kde.org/Development/Tutorials/CMake

like image 139
user1204395 Avatar answered Dec 14 '25 07:12

user1204395


KApplication.h is typically located in /usr/include/KDE folder. Make sure you have it in your include path (i.e. INCLUDEPATH += /usr/include/KDE).

like image 25
Dmitry Avatar answered Dec 14 '25 07:12

Dmitry



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!