Thanks for that - I will give it a try

-----Original Message-----
From: interest-bounces+graham.labdon=avalonsciences....@qt-project.org 
[mailto:interest-bounces+graham.labdon=avalonsciences....@qt-project.org] On 
Behalf Of Rayner Pupo
Sent: 22 November 2013 03:00
To: interest@qt-project.org
Subject: [Interest] Custom QPushButton

You can do whatever you want by subclassing QPushButton and reimplementing 
paintEvent function. 
using QStyleOptionButton you can draw the button exactly like a normal one but 
looking allways like normal state, just set the propper button feature for the 
styleOption 
________________________________________________________________________________________________
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 
2014. Ver www.uci.cu _______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to