Change trinagle in the menu button
Page |
1 |
When the popup menu is associateed with push button in some styles we can see will produce a small triangle to the right of the button’s text. How we can change this triangle?
19 replies
You could try creating a QProxyStyle and reimplementing QStyle::standardItemImplementation() to return whatever you need when the SP_ArrowDown pixmap is requested. However, I am not sure that this is actually used by all styles, nor that this is the right pixmap. YMMV
You could try creating a QProxyStyle and reimplementing QStyle::standardItemImplementation()
Interesting idea, but I don’t found QStyle::standardItemImplementation()
I think he means standardIconImplementation [developer.qt.nokia.com]
Hello
I have a similar problem.
You need to replace the standard icon, on the other
I created a new class inherited from QProxyStyle and redefined method standardIconImplementation, but for some reason I will not have changed…
- class CustomStyle :
- public QProxyStyle
- {
- Q_OBJECT
- public:
- CustomStyle();
- protected slots:
- };
and the implementation itself
- {
- switch(standardIcon)
- {
- }
- return QProxyStyle::standardIconImplementation(standardIcon, option, widget);
- }
You must log in to post a reply. Not a member yet? Register here!





