Top "Qlistview" questions

`QListView` is a UI control part of the Model/View architecture of the Qt Framework.

How do I get the items selected from a QListView?

{ ... nrow = 10; ncol = 1; /*create QListView */ m_listView = new QListView(this); m_listView->setGeometry(QRect(QPoint(0,100), QSize(100, 150))); QStandardItemModel *model = new QStandardItemModel( …

c++ qt qlistview
QListWidget or QListView with QItemDelegate?

Let's say I need to display a list of items. Each item contains a QPushButton an image and some text. …

qt qlistview qitemdelegate qlistwidget
Signal when a QListView selection changes due to keyboard activity?

I have a QDialog, created with QT Designer, that looks like so: The list of servers on the left is …

c++ qt qt5 qlistview
Render QWidget in paint() method of QWidgetDelegate for a QListView

i'm having difficulties implementing custom widget rendering in a QListView. I currently have a QListView displaying my custom model called …

qt qwidget qpainter qlistview qstyleditemdelegate
Qt: Browsing filesystem with QListView and QFileSystemModel. How to higlight first item in a folder?

I'm doing what the topic says on a system without keyboard/mouse, so I need to make this work "from …

qt qlistview qfilesystemmodel
Qt QListView - context menus?

I'm trying to add a context (right click) menu to a Qt QListView. I see in Qt 3.3 there is "contextMenuRequested" (…

qt qlistview
QListView item with checkbox selection behavior

I'm adding checkbox items to a list view. Then when I change the check box indicator, the item row is …

c++ qt qlistview qstandarditem
Uneditable QListView

I have a QListView displaying a list of items but I don't want the items to be edited (Currently a …

static locking pyqt edit qlistview
How to clear all items of QListView

I searched a lot but I could not understand how to clear all items of QListView? I used QStringListModel and …

qt qlistview
Filtering QFilesystemModel

I'm using a QFileSystemModel with a QListview to display all files from a directory. I'd like to filter that model …

qt qlistview qfilesystemmodel