How can I put the data UNDER the icon (listwidget)
-
@
QListWidgetItem *item = new QListWidgetItem(100, ui->listWidget);
item->setIcon(QIcon(":/images/icon.png"));
item->setData(Qt::UserRole, "something");
@My data is always NEXT to the icon... I'd like to put it UNDER the icon.
Is there a simple solution for this? -
If you need custom ListWidgetItems, subclass "QAbstractItemDelegate":http://qt-project.org/doc/qt-4.8/qabstractitemdelegate.html