Results 1 to 2 of 2

Thread: QAbstractButton

  1. #1
    Join Date
    Jun 2012
    Posts
    98
    Thanks
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QAbstractButton

    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/...pp-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!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QAbstractButton

    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().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QAbstractButton::setIcon | Icon posiition
    By ouekah in forum Newbie
    Replies: 2
    Last Post: 10th May 2010, 23:56
  2. Replies: 1
    Last Post: 3rd May 2010, 17:31
  3. Best Practice - delete pointer QAbstractButton in QMessageBox
    By estanisgeyer in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2008, 12:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.