qlistview Questions

2

Solved

I want to show some text (like "No items") when there are no items in QListView. I tried to override paintEvent method of QListView, but it doesn't have any effect.
Antedate asked 24/12, 2013 at 18:51

2

Solved

Let's say I need to display a list of items. Each item contains a QPushButton an image and some text. When a user clicks on the button something should happen (ie I need to get the signal). What is...
Ductile asked 14/5, 2011 at 16:15

1

Solved

Hi have a QListView created using QtDesigner and converted to python using pyuic4, and I imported the UI module where I am trying to connect it to events for the QlistView i am trying to implemen...
Hubert asked 26/10, 2013 at 9:58

1

I am using QListView to show list of friends' names. When I click on a name it should select a name and show profile related information and on right click it needs to show context menu without sel...
Doorstep asked 25/10, 2013 at 14:20

3

Solved

i'm having difficulties implementing custom widget rendering in a QListView. I currently have a QListView displaying my custom model called PlayQueue based on QAbstractListModel. This is working f...
Spiritism asked 23/6, 2011 at 10:50

1

Solved

{ ... nrow = 10; ncol = 1; /*create QListView */ m_listView = new QListView(this); m_listView->setGeometry(QRect(QPoint(0,100), QSize(100, 150))); QStandardItemModel *model = new QStand...
Hoodlum asked 7/8, 2013 at 1:25

1

I have created a very simple example of QListView with a custom QAbstractListModel. The QListView is displayed but it is empty. What am I doing wrong? Code: #include <QListView> #include ...
Shaveling asked 27/2, 2013 at 5:18

1

Solved

I have a QListView and have assigned a model and a delegate. I am using it to display images in a horizontal bar as below On a user event, data is updated in the model. One such event causes the...
Pasquale asked 28/1, 2013 at 13:50

1

Solved

I working on a small QlistView which is Sortable. iListView = new QListView(this); //Creating a standard item model iStandardModel = new QStandardItemModel(this); //First item QStandardItem*...
Isodiametric asked 12/6, 2012 at 4:31

2

Solved

How can I set the minimum height of a QListWidgetItem? I'm using QListWidget::setItemWidget() with a customized widget, and although I explicitly declared minimum height of my customized widget, th...
Halden asked 25/5, 2012 at 2:30

2

When using qlistview in icon mode I need to completely remove the hilighting when a icon is selected. Using the code below the text under the icon is no longer highlighted but I still get blue colo...
Sialoid asked 18/2, 2011 at 17:22

1

Solved

I have a QListView, where I display items using a custom delegate with custom painting. Within each item (i.e. each list row) I want to be able to show a couple of "hyperlinks" which the user could...
Alurta asked 23/2, 2012 at 14:32

3

I'm trying to add a context (right click) menu to a Qt QListView. I see in Qt 3.3 there is "contextMenuRequested" (which I could use) - http://doc.qt.digia.com/3.3/qlistview.html#contextMenuRequest...
Linalinacre asked 19/5, 2010 at 21:38

2

Solved

Qlistview Selectionchanged event not found in Qt What is the equivalent of selection changed event in Qlistview in Qt?
Keilakeily asked 3/6, 2011 at 5:29

2

Solved

This is my first QT question - I'm generally a C# programmer so forgive me for asking a stupid question for which I'm sure there's a very simple answer, which I just can't seem to find: I want to ...
Surprint asked 27/4, 2011 at 9:59

2

Solved

Within an already-instantiated QAbstractListModel subclass, how do I add a row with data in each column, and have the associated QListView display the new row? It seems that the only way to do it ...
Gadgetry asked 16/1, 2011 at 0:19

2

Solved

How do you change the behavior of a QListWidget so that it resizes its height instead of choosing a (seemingly arbitrary) height and adding scrollbars? See screenshot: The QListView's should fil...
Jemmie asked 10/9, 2010 at 13:59

2

Solved

I have a pointer to a third party QListView object, which is simply displaying rows of text. What is the best way of getting a hold of that string of text?
Lobby asked 28/7, 2009 at 19:53

2

Solved

I want to display a QListView where each item is a checkbox with some label. The checkboxes should be visible at all times. One way I can think of is using a custom delegate and QAbstractListModel....
Shippy asked 11/5, 2009 at 4:2

© 2022 - 2025 — McMap. All rights reserved.