Results 1 to 2 of 2

Thread: How to add 2 column of RadioButtons in qtableview ?

  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default How to add 2 column of RadioButtons in qtableview ?

    Hi guys,

    what's the best thing I must you to add RadioButtons in qtableview ? Is-it better with ItemDelegate or with the method setIndexWidget()?

    Do you have an example ? I didn't find any of the web.

    Thx.
    Sylvain Michaud

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to add 2 column of RadioButtons in qtableview ?

    With setIndexWidget it is faster (to achieve) and easier, but using a item delegate is much more sophisticated, faster in runtime if you have more of it, and simply the way to do. You will find a star delegate at the documentation. Also see QStylePainter::drawControl() with QStyle::CE_RadioButton.

Similar Threads

  1. QTableView with a column of images
    By elanari in forum Qt Programming
    Replies: 13
    Last Post: 7th February 2012, 12:25
  2. Qtableview insert row and column
    By maarvi in forum Newbie
    Replies: 1
    Last Post: 1st July 2011, 09:26
  3. Qtableview column get increasing
    By maarvi in forum Newbie
    Replies: 0
    Last Post: 28th June 2011, 19:21
  4. QTableView column trouble
    By nategoofs in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2009, 20:14
  5. How can I lock the first column in QTableView
    By alfred4923 in forum Qt Programming
    Replies: 1
    Last Post: 10th August 2009, 08:55

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.