[Interest] Custom QPushButton

Graham Labdon Graham.Labdon at avalonsciences.com
Fri Nov 22 09:15:34 CET 2013


Thanks for that - I will give it a try

-----Original Message-----
From: interest-bounces+graham.labdon=avalonsciences.com at qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences.com at qt-project.org] On Behalf Of Rayner Pupo
Sent: 22 November 2013 03:00
To: interest at 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 at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list