Styling all of QtreeView...
-
Hey
So I'm digging into the styling of QtreeView... viewport, items, decorators, all of it.
As far as I can tell I need QProxyStyle to do background which handles item QRect visual.
I need setItemDelegate() / QStyledItemDelegate for styling of items them self..But out of both of them... neither affects the decorator >
How do I affect them? The background color & pixmap/icon/arrow all of it?Or I did not override the correct function... Any hints, any1?
TIA
Edit1
I found these 3 places where decorator is mentioned...
https://code.woboq.org/qt6/qtbase/src/widgets/styles/qstylesheetstyle.cpp.html#5939
https://code.woboq.org/qt6/qtbase/src/widgets/styles/qcommonstyle.cpp.html#2293
https://code.woboq.org/qt6/qtbase/src/widgets/styles/qcommonstyle.cpp.html#3151Sadly none of them gets called in my style sheet as far as I can tell... mmm syme styleHint() is it as I didnt replace that one yet but its odd...
Hints any1? -
@VRonin I want to do some heavy changes/customisations... stuff I cant do in CSS...
Like moving expand button to opposite of tree, changing location of checkbox, changing indentation of child items.How can I control indentation of child items? I need it now :/ I keep getting "invisible" hitboxes as my child item is moved to left visually but hitboxes are drawn in original places :///
Ideas?
I just realized there is "setIndentation"... sigh............ Ok that kinda works, how can I set indentation per row? :D