I\'m looking to essentially replicate this:
What is the most appropria
definitly QTableView, Using custom itemDelegate to present every block, implements the custom widget to display the Image and Text Title
You should use QListWidget
(or QListView
and subclass QAbstractItemModel
) and set it's view mode to IconMode
.
Example :
m_listeWidget->setViewMode(QListWidget::IconMode);
m_listeWidget->setIconSize(QSize(200,200));
m_listeWidget->setResizeMode(QListWidget::Adjust);
m_listeWidget->addItem(new QListWidgetItem(QIcon("../earth.jpg"),"Earth"));
m_listeWidget->addItem(new QListWidgetItem(QIcon("../tornado.jpg"),"Tornado"));
m_listeWidget->addItem(new QListWidgetItem(QIcon("../ics.jpg"),"Wallpaper"));
Result :