PDA

View Full Version : QTableView Horizontal Bar depressed, looks ugly.



killerwookie99
29th January 2009, 00:50
How do I prevent the horizontal bar from depressing all column tabs when I am in row selection, it looks bad.:eek:

aamer4yu
29th January 2009, 04:23
You can use QTreeView if it suits you.

Otherwise in table view, get the horizontal header and set its setClickable(false);
QHeaderView::setClickable

Hope it helps

killerwookie99
30th January 2009, 18:15
If I do that, then they can't sort...is there an open bug on the look of the QTreeView...? (which is what I was using)

wysota
30th January 2009, 18:46
No, the behaviour is intentional and it could be that it depends on the platform.

killerwookie99
30th January 2009, 22:33
OK, well maybe I can work around it by setting only the items in the first column of the table clickable...

zgulser
4th March 2009, 14:01
Hi,

You can play the style of the tablewidget. It worked for me.