C++ (Qt)QListView setViewMode(QListView::IconMode)
C++ (Qt)setViewMode(QListView::ListMode)
C++ (Qt)myModel->setData(index, listFiles.at(i), Qt::DisplayRole);
myModel->setData(index, Qt::AlignBottom, Qt::TextAlignmentRole);
C++ (Qt)myModel->setData(index, Qt::AlignBottom, Qt::TextAlignmentRole);
C++ (Qt)class SimpleDelegate : public QItemDelegate{public: SimpleDelegate(QObject* pobj = 0) : QItemDelegate(pobj) { } void paint(QPainter* pPainter, const QStyleOptionViewItem& option, const QModelIndex& index ) const { }};
C++ (Qt)PreviewList->setItemDelegate(new SimpleDelegate(&listView));
C++ (Qt)pPainter->drawPixmap(option.rect, QPixmap("myPixmap"));
C++ (Qt)myModel->setData(index, "name", Qt::DisplayRole);myModel->setData(index, QIcon("MyIco"), Qt::DecorationRole);
C++ (Qt)myModel->setData(index, "name", Qt::DisplayRole)
C++ (Qt) QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) { return QSize(MainWindow::icoWidth, MainWindow::icoHeight); }