|
I wrote a short code to test combination of Qt and plasma.
I just used this code in my Qt widget:
I received linker error: (I'm not developing a plasma applet. just wanna use plasma API's on my Qt program)
I (searched and) couldn't find which library I should use. And even couldn't find s.th like "related libraries" on KDE TechBase. any help!? |
Administrator
|
Plasma functions are contained in libplasma, which is a component of kdelibs. In particular, you need to link aganist libplasma.so.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
|
oh really thanks man! Today I test it and it solved the linkage problem with plasma. but now there's another error that I have no idea about:
I'm using Qt 4.7-snapshot and KDE 4.5 rc2 |
Administrator
|
Unusual issue. Make sure you are linking to QtCore and QtGui.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
|
|
I'm using Qt Creator (I press run and it compile the project..) and created a new Qt GUI project on that.
( I just wanna test EnableBlurBehind() on my very basic QWidget ) |
KDE Developer
|
Ok, that is strange - QtC should create a valid makefiles.
You can try manually invoking 'run qmake' (I don't remember in what menu exactly it is) and you should check whether .pro file is valid. (you could also post it here) |
|
here's my main file that use the plasma:
and here's my pro file:
|
KDE Developer
|
Ok, it looks like QtCreator is trying to link to an older version of Qt (4.6 or earlier)
|
|
I'm almost sure that there's no Qt older than 4.6.2 version installed on my computer!
|
KDE Developer
|
I misspelled - 4.6.x or earlier - so it is trying to link to them while kdelibs are compiled with 4.7.
QString::isRightToLeft() and QIcon::name() are introduced in 4.7. |
|
I was using 4.7beta1 then changed it to beta 2 and now everything works fine. Really thanks to both of you
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]