Results 1 to 2 of 2

Thread: QPushButton and QItemDelegate

  1. #1
    Join Date
    Aug 2008
    Posts
    28
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QPushButton and QItemDelegate

    I want to create a QItemDelegate for a QTableWidget that draws some text and a QPushButton. How it can be done?

  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: QPushButton and QItemDelegate

    Drawing text is easy so you probably know how to do it. Drawing a button is not much harder. Use QStyle API for that, for example QStyle::drawControl with CE_PushButton.
    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. QPushButton in QItemDelegate
    By allbabel in forum Qt Programming
    Replies: 0
    Last Post: 2nd April 2009, 11:45

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.