[Solved] Why does a application ignore its plugin?
-
wrote on 9 Jul 2013, 19:55 last edited by
There is an example of plugin that exist in qt examples it is called 'styleplugin'
this simple plugin must change color of button to red but when i run it. it wont change the color of button.
(If you want test whole project go to example tab of qt creator and type 'plugin' then choose style plugin example) -
wrote on 10 Jul 2013, 01:00 last edited by
Can you told which platform and Qt version are you using?
-
wrote on 10 Jul 2013, 05:39 last edited by
I have Qt 5.1 and my platform is xp.
-
wrote on 10 Jul 2013, 06:36 last edited by
Yes, it's a bug. It doesn't work for Windows and Mac.
Fix the constructor.
@
SimpleStyle():QProxyStyle(QStringLiteral("windows")) {}
@ -
wrote on 10 Jul 2013, 07:44 last edited by
Thanks a lot. It works.
5/5