PDA

View Full Version : QTableWidget spaces between column



evergreen
12th May 2011, 09:37
For a question of ergonomy, i want to add a space between 2 columns of my QTableWidget. I couldn't find a way in the doc.
And adding an empty column makes things pretty ugly.

Is this add possible?

Thanks

MarekR22
12th May 2011, 10:27
own delegates QAbstractItemView::setItemDelegate (http://doc.qt.nokia.com/latest/qabstractitemview.html#setItemDelegate)
See QAbstractItemDelegate (http://doc.qt.nokia.com/latest/qabstractitemdelegate.html).

Subclassing QItemDelegate (http://doc.qt.nokia.com/latest/qitemdelegate.html) in smart way should do the trick.