How to install qtstyleplugins
-
Hi there,
I'm new on Qt and I wanted to compile an old project using QCleanlooksStyle which is not supported in recent Qt versions. So I have downloaded the qtstyleplugins but I cannot manage to use it. I used the last plugin version available on github since the original repository seems to be not clonable.
Anyway the compilation of the plugin with Qt 5.6 (and Qt Creator 3.6) fails because of a not found header: "QtWidgets/private/qpixmapstyle_p.h" . Do i have some other things to install ?
Before testing with the last plugin version on github, I've tried to use the release version 5.0.0 which compiled fine but which was not visible under Qt Creator. So my second question is: once qtstyleplugins is compiled, how do I install it ?Thanks!
-
Hi and welcome to devnet,
Looks like the missing style is available with Qt 5.7
-
Thanks ! Unfortunately it seems that Qt 5.7 is not yet available from the provided linux installer, but I guess it will be available soon !
in the meantime, once compiled, how do I install the plugin on Qt creator ? Do I just drop the .so in QtCreator folder ?
-
Why install it in Qt Creator ? If you want to use in your application it your should put it in your Qt build folder under
plugins/styles
. What will likely be done for you with a call tomake install
after you build the module. -
Oh ok ! So I compiled the plugin (version 5.0.0) and installed it this way. Now the problem is that Qt does not find the modules defined by the plugin ("cleanlooks", or maybe "styles/cleanlooks"), although there is a folder
plugins/styles
with the right libs in it. Do you have a last hint ? (I believe the solution is really close, but I can't find it...)I have been looking on this page and it looks like qtstyleplugins has not the same required structure (no
qt_<module>.pri
file for example).