Important: Please read the Qt Code of Conduct -

QTreeView - no setSpacing(), QListView - no header

  • Hello,

    basically I want a list with a header and some space between items.
    The reason of why I can't set sizehint on QTreeView is because of background color, that simply fill everything, and I need at least a white line between items.

    Anyone can help me to deal with this problem?

  • Aren't you looking for a 1 column table with the vertical headers hidden?

  • I think I had 2 problems with it: 1. Still don't know how to setSpacing and also, cells won't take view's width...

Log in to reply