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.(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.
精彩评论