[Gambas-user] Treeview with vertical lines?

Gianluigi bagonergi at gmail.com
Wed Jul 3 11:34:40 CEST 2019


Il giorno mer 3 lug 2019 alle ore 10:34 Rolf-Werner Eilert <
rwe-sse at osnanet.de> ha scritto:

> Am 03.07.19 um 10:22 schrieb Benoît Minisini:
> > Le 03/07/2019 à 09:20, Bruce a écrit :
> >> Looks like its possible in QT5 using stylesheets :
> >>
> >> QTreeView::branch:has-siblings:!adjoins-item {
> >>      border-image: url(vline.png) 0;
> >> }
> >>
> >> QTreeView::branch:has-siblings:adjoins-item {
> >>      border-image: url(branch-more.png) 0;
> >> }
> >>
> >> QTreeView::branch:!has-children:!has-siblings:adjoins-item {
> >>      border-image: url(branch-end.png) 0;
> >> }
> >>
> >> QTreeView::branch:has-children:!has-siblings:closed,
> >> QTreeView::branch:closed:has-children:has-siblings {
> >>          border-image: none;
> >>          image: url(branch-closed.png);
> >> }
> >>
> >> QTreeView::branch:open:has-children:!has-siblings,
> >> QTreeView::branch:open:has-children:has-siblings  {
> >>          border-image: none;
> >>          image: url(branch-open.png);
> >> }
> >>
> >> See
> >> https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
> >> towards the bottom of the page
> >> hth
> >>
> >> b
> >>
> >
> > Except that TreeView is not a QT widget anymore. It is entirely written
> > in Gambas now.
> >
>
> Oh, that would mean it can be easily tweaked, wouldn't it?
>
> Rolf
>
>
You can start with try:
Print TreeView1.Children[0].Name

:-)

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190703/16308bd8/attachment.html>


More information about the User mailing list