Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi guys
I want to get rid of that blank in treeview, is it possible?
@Qt-Jo-Ha https://doc.qt.io/qt-5/qtreeview.html#indentation-prop
@Qt-Jo-Ha Do you have experience in custom item delegates?
@Bonnie
Yes. I have a delegate I made
@jsulm
Thank you. It works fine when I use the attribute value you gave me. But is this possible?
@Qt-Jo-Ha Then you can use delegate to do something like
if(index.parent().isValid()) opt.rect.setLeft(0);
in the reimplemented paint function.
paint