[Qt-interest] custom shaped buttons

Tibo W tibo_wcc at yahoo.com
Wed Jan 25 02:41:32 CET 2012


Hi,

I'm trying to draw push button with custom shapes.
I created a class inheriting from QPushButton, and draw a polygon in paintEvent. But I don't know how to apply the same colour and style than the current buttons.
Is there any way to do it ?

thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20120124/92ebdb37/attachment.html 


More information about the Qt-interest-old mailing list