Fwd: including kde classes in qt

David Faure faure at kde.org
Tue Jan 17 08:05:12 UTC 2017


On lundi 16 janvier 2017 00:19:34 CET Valorie Zimmerman wrote:
> Can anyone please tell me
> how to include kde classes in qt ide. I added this syntax in my .pro
> file
> 
> LIBS += -lkdeui
> 
> but still it is showing error about kde header files i used."

kdeui is "old" (it's from kdelibs 4.x),
and it didn't have qmake support.

If you're using Qt5, you probably want to use KF5 instead, and then write
QT += KWidgetsAddons
(or whichever framework contains the class you want to use).

This is documented at 
https://api.kde.org/frameworks/kwidgetsaddons/html/index.html

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5




More information about the kde-community mailing list