سؤال

How to use Kplotwidget in QtCreator, i added /use/lib/kde4 and /usr/include/kde4 in .pro, and try to add library like libkde.so, libkdeui.so (from kde4 subfolders) but nothing useful,my build output is " error while loading shared libraries: libkde.so: cannot open shared object file: No such file or directory "

هل كانت مفيدة؟

المحلول

The libkde.so includes only KDECore library classes. If you want to use GUI elements from KDE you have to include libkdeui.so. Add to your .pro following:

unix:!macx:!symbian: LIBS += -lkdeui

نصائح أخرى

solution for Qt Creator 2.4

  1. go to .pro file

  2. add line: LIBS+=/usr/lib64/libkdeui.so.5 \ -L/usr/lib64

  3. add line: INCLUDEPATH+= /usr/include/kde4

Above solution allows to avoid problems with KDE family widgets (e.g. KLed, KColorButton, etc)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top