PDA

View Full Version : How to change the height of the Item in QTreeView when it is selected?



charlse
16th February 2011, 11:05
Hi guys,
I want to change the height of the item in QTreeView when it is selected, but I can't find the way, Thanks a lot for your suggestions!

Zed
16th February 2011, 11:13
try to use stylesheet, something like this


yourTree->setStyleSheet("QTreeWidget::item:selected{height:100px;}");

charlse
17th February 2011, 02:55
Zed, thanks for your advice, I try it, but it also doesn't work.