PDA

View Full Version : QAbstractButton



tescrin
18th July 2012, 17:58
I'm looking to turn my former "Promoted" implementation into a "Plugin" implementation and part of that involves (IMO) inheriting from QAbstractButton to make a cleaner implementation.

I'm looking to figure out what all methods I *need* to write on top of my custom implementation so that it all runs smoothly. I'm still investigating, but I figured someone might post a reference or a list to help out. I'm currently looking at the documention:

http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2-browser/db/d34/qpushbutton_8cpp-source.html
http://qt-project.org/doc/qt-5.0/qpushbutton.html

but I figure having another person confirming what all I need to implement to be successful here would be helpful. Thanks!

wysota
18th July 2012, 20:35
Are we supposed to search all your previous posts to find out what you are talking about?

The only method you need to implement from QAbstractButton is the one that is pure virtual which is QAbstractButton::paintEvent().