qitemdelegate Questions

6

Solved

I'm doing an implementation of a CheckBox that inherits from QitemDelegate, to put it into a QTableView. the problem is that I get when inserted flush left and I need it centered. As I understand...
Primatology asked 3/8, 2012 at 18:1

3

Solved

I followed the Spin Box Delegate tutorial, which Qt provides, to try to implement my own QItemDelegate. It would be used to specify a QComboBox to represent data in a QTableView cell but it is not ...
Kine asked 21/5, 2013 at 0:27

1

Solved

I am displaying data from an SQLite database in a QTableView using a QSqlTableModel. Letting the user edit this data works fine. However, for some columns I want to use QComboboxes instead of free ...
Manque asked 21/8, 2018 at 8:53

5

I'm writing a PyQt application and am having some trouble creating a custom list view. I'd like the list to contain arbitrary widgets (one custom widget in particular). How would I go about this? ...
Creech asked 4/6, 2009 at 3:24

1

Solved

After hours of work, I'm able to paint a widget on QListView. However, the painting is done through a QPixmap. The widget appears, and I can see a progress bar. However, it's a little "pixelated" (...
Turgite asked 3/6, 2017 at 13:53

1

Solved

Both classes provide display and editing facilities for data items from a model. QStyledItemDelegate is newer and the Qt documentation about QItemDelegate states that : Note that QStyledItemDele...
Devondevona asked 5/3, 2015 at 6:6

1

Solved

In one of my projects I'm using a QTableWidget in order to display some complex computational results. In order to increase the readability of the table I'm in need to display two aligned values in...
Delete asked 30/3, 2017 at 8:40

1

Solved

I'm having a QListView with a QFileSystemModel. Based on a selection in a QTreeView, the QListView shows the content of the folder. Now I need to change the color of the filenames depending on some...
Bakehouse asked 31/10, 2016 at 9:33

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

Background I've made a custom widget with QLineEdit and several QPushButtons to use it with custom item delegate: class LineEditor : public QWidget { public: explicit LineEditor(QWidget *parent = ...
Whitmire asked 27/8, 2012 at 16:7

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

1

Solved

I'm trying to implement behavior similar Excel in a QTableView, where a border is painted around the entire current selection. I have tried this what feels like a hundred different ways and keep ge...
Isogamy asked 29/6, 2011 at 4:16

2

Solved

I require a button/link within a table row of a QTableView. This is to open a dialog to allow that row to be edited more efficiently. After hours of looking on the web I am yet to find a decent ex...
Politic asked 10/12, 2010 at 20:1

2

Solved

I have a QTableView connected with an QSqlTableModel. In the first column, there are only dates at this format: 2010-01-02 I want this column to show the date at this format (but without changing t...
Vasya asked 6/1, 2010 at 13:6

1

Solved

I understand more or less how does MPV works. But I don't get what classes: QAbstractItemModel QAbstractItemView QAbstractItemDelegate / QItemDelegate Can do for me? If that is relevant, I'm u...
Sofia asked 17/6, 2009 at 1:44

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

4

Solved

I've got a QTableView for which I want to display the last column always in edit mode. (It's a QComboBox where the user should be able to always change the value.) I think I've seen the solution i...
Camise asked 9/2, 2009 at 14:36
1

© 2022 - 2024 — McMap. All rights reserved.