Results 1 to 4 of 4

Thread: radio button on tableview vertical header...

  1. #1
    Join Date
    Apr 2016
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default radio button on tableview vertical header...

    I am trying to place radio buttons on the vertical header of tableview.
    I want to show a radio button corresponds to each row for user to
    click on so I'd be able to display detail info on that particular row.

    I would like to do that in a proper manner.

    Can anyone help me with that.

    Thanx in advance.

    YL.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: radio button on tableview vertical header...

    If it doesn't have to be in the header you could let the first column show a checkbox by letting the model deliver values on requests for the Qt::CheckStateRole

    Cheers,
    _

  3. #3
    Join Date
    Apr 2016
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: radio button on tableview vertical header...

    thanx Anda, but it has to be the header.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: radio button on tableview vertical header...

    Hmm.
    You might have to derive your own subclass from QHeaderView and reimplement paintSection()

    Cheers,
    _

Similar Threads

  1. Radio Button in qml
    By Aster036 in forum Qt Quick
    Replies: 3
    Last Post: 10th September 2015, 14:00
  2. how to check radio button
    By tommy in forum Newbie
    Replies: 2
    Last Post: 24th February 2012, 02:50
  3. Change tableView vertical header
    By tinysoft in forum Newbie
    Replies: 1
    Last Post: 17th September 2011, 08:35
  4. Coloring of Radio Button
    By jogeshwarakundi in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 22nd July 2008, 15:05
  5. QTreeWidgetItem + radio Button
    By desch in forum Qt Programming
    Replies: 5
    Last Post: 14th November 2007, 14:15

Tags for this Thread

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.