uhm....any idea what class?..
uhm....any idea what class?..
If you are not using any specific style then it's best to either use style sheets or implement a [wiki]Proxy style[/wiki].
I did a : myQTableView->setStyleSheet(styleSheet) but unfortunately it doesnt appear to affect the checkbox. Or did you mean something else maybe?
cheers
Maybe you used a wrong stylesheet? I'm not sure if you can move the checkbox to the right using a stylesheet, so you'll probably have to implement a proxy style.
i think george used the method i gave him i.e. to draw a custom checkbox image in the table view cell and trap mouserelease event inside the cell. So, if the mouse release event falls inside the cell containing the checkbox, then toggle the checkbox.
My GNU/Linux Blog:
http://funwithlinux.blogspot.com
monty: yes i did, forever gratefull
wysota: i want to implement some filtering on data coming from a model (from a database) and from what I understand the QSortFilterProxyModel is suppose to have been created exactly for this.
What would be the best way to add a column to the proxymodel so that the sourcemodel stays untouched (unaware of the extra column) ? Subclass it ?
Either use a model proxy or subclass the original model, depending what's easier in your case.
Bookmarks