[SOLVED] QTreeWidget branch increasing size

  • Qt Champions 2017

    the qtreewidget shows a small arrow for expand/collapse
    I can replace that
    with border-image in a stylesheet
    but how would I make it bigger?
    Seems to be same size regardless of image size used.

  • Qt Champions 2017


    One can controls the branch size to some degree.

    Still looking for a stylesheet way of doing it.

  • Moderators

    Although you can't set a size of the branch directly you can manipulate it indirectly like this:

    QTreeView::item { height: 100px; } /* manipulates item but influences the height of the branch too */
    QTreeView { qproperty-indentation: 100; } /* offsets an item and so also widens the branch, note no unit (px) */

  • Qt Champions 2017

    @Chris-Kawa said:

    Ahh, ofcause qproperty !


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.