PDA

View Full Version : Text under icon on QtableView



aguayro
9th March 2012, 22:17
hi, i need to show text under icons on a QTableView, i've tryed with Qt::AlignHCenter, etc... but doesnt work.
I'm trying to do a Icon View list with a QTableView, something like this:

7478

there is any way to do it?
thanks.

ChrisW67
9th March 2012, 23:31
A custom delegate. The standard delegate draws the Qt::DecorationRole icon to the left of the text.


Also look at QListView in Qt::IconMode

aguayro
10th March 2012, 12:58
Thanks a lot!!
QlistView and IconView Mode was all i need :)