PDA

View Full Version : radio button on tableview vertical header...



yxlee
4th May 2016, 23:26
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.

anda_skoa
5th May 2016, 10:28
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,
_

yxlee
7th May 2016, 03:54
thanx Anda, but it has to be the header.

anda_skoa
7th May 2016, 09:59
Hmm.
You might have to derive your own subclass from QHeaderView and reimplement paintSection()

Cheers,
_