I want to customise QTreeWidgetItem. I wish to add to it, two Toolbuttons and a string. Also I wish to add these to only one column in the treewidget.

I tried to subclass QTreeWidgetItem but realised I coult not "paint" on it as it is not derived from QWidget.

I then tried using QTreeWidget::setItemWidget(QTreeWidgetItem *item, int column, QWidget widget);However, the button overlaps over the text written to the item. If I add widgets to different columns, using the above call,I can see three column separators on the top. Can i hide the column separators to make it look like a single column?