I use the QTreeWidgt like this:
Code:
for( ...; ...; ....) { //init the item value preItem = item; }
then how can I remove the line in my Treewidget?
the line like this:
|__My Record A
|__My Record B
|__My Record C
|__My Record D
Printable View
I use the QTreeWidgt like this:
Code:
for( ...; ...; ....) { //init the item value preItem = item; }
then how can I remove the line in my Treewidget?
the line like this:
|__My Record A
|__My Record B
|__My Record C
|__My Record D
If you only have top level items in the tree, using QTreeView::setRootIsDecorated(false) will do the trick.
If you have many levels, then you might need delegates or styleSheets...