PDA

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



charlse
16th February 2011, 12: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, 12:13
try to use stylesheet, something like this


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

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