hi,
Could anyone please tell me , how to set the background color of tool button to red??
hi,
Could anyone please tell me , how to set the background color of tool button to red??
you can do it by using a stylesheet check this http://doc.qt.io/qt-4.8/stylesheet
Thanks for your reply.
I checked the link that you are given. In that it is mentioned all toobox in the QWidget will change to custom color.
I need to change only the particular tool button color.
Could you please post some source to explain,so that i can understand better.
Thanks in Advance.
Regards
Vinithr
What do you want? First you ask about QToolButton and then refuse the advice citing something to do with "all toolbox in the QWidget". Since QToolButton has nothing to do with QToolBox this makes little sense.
There's even an example specifically for QToolButton here.
Bookmarks