开发者

Tree Parent child hierarchy Hiding

开发者 https://www.devze.com 2023-03-26 16:26 出处:网络
I want to implement tree widget but it doesn\'t have to show the hierarchy l开发者_如何学Goine.

I want to implement tree widget but it doesn't have to show the hierarchy l开发者_如何学Goine.

Please help on this.

Tree Parent child hierarchy Hiding

(Hierarchy means the line between parent and child.)


Use QSS styles - assign empty image to lines...

QTreeView::branch
 {
    border-image: none;
    image: url(:/style/blankImage.png);
 }

if lines are still exists after that- create png with one transparent pixel and assign it to TreeView's branch, i haven't checked variant with no image at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消