Unsolved Facing plroblem to add line(image or coloured line) between each added item in QTreeWidget
-
I am working on QTreeWidget. Please find the attached screenshots to see the issues.
Issue 1.
I have to add a horizontal line/image (according to red horizontal rectangle) between each added items into QTreeWidget.Issue 2.
I have to add a Vertical blue line/image (according to red vertical rectangle) in selcted items into QTreeWidget. -
You can add Delegate. Create a class that inherits QStyleItemDelegate. Override paint() function and set this delegate to your QTreeWidget.
-
@qtsoftdevloper To me this "Select Drive" looks rather like a QListView, not QTreeView. Are you sure it should be a QTreeView?
-
Thanks for reply. Actually I am working on an existing code(used QTreeWidget) and QT is new for me so I don't have idea which one is good to use(QTreeWidget or QTreeView). If I use QTreeView instead of QTreeWidget there may be some other problem.
Is it possible to solve both issues using QTreeWidget or its mandatory to use QTreeView to solve the problem.
-
@Maaz-Momin Thanks for reply.
-
This post is deleted!