PDA

View Full Version : Custom buttons using style sheets



GrahamLabdon
22nd March 2010, 15:50
Hi all
How would one create a round push button using style sheets?
Thanks

Lykurg
22nd March 2010, 15:58
Read the docs! There is an example of how you can make round edges. If you set this radius to (height of the button)/2 you have a round button.

graciano
22nd March 2010, 15:58
How about ...try a round icon (background transparent) on the button and then apply this on the styleshhet:

QPushButton {border-style: outset; border-width: 0px;}

GrahamLabdon
22nd March 2010, 16:06
Thank you!!

maxpaayne
24th January 2011, 21:53
You can create a cool pretty good navigation rounded menu, without images and without Javascript, and effectively use new features of CSS3 border-radius and animation. This is very easy to implement.