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!
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!
try to use stylesheet, something like this
Qt Code:
yourTree->setStyleSheet("QTreeWidget::item:selected{height:100px;}");To copy to clipboard, switch view to plain text mode
Zed, thanks for your advice, I try it, but it also doesn't work.
Bookmarks