View Full Version : Background color of toolButton
vinithr
4th June 2012, 13:58
hi,
Could anyone please tell me , how to set the background color of tool button to red??
StrikeByte
4th June 2012, 14:09
you can do it by using a stylesheet check this stylesheet
vinithr
6th June 2012, 11:14
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
ChrisW67
6th June 2012, 11:23
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.