开发者

Tree Parent child hierarchy Hiding

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜