Advise: dropdown QStringList with photo to the right
-
Hello.
I have been developing an application which at a certain point exhibits a combobox-like editor for a QTableView cell.
It's QLineEdit based, and the dropdown part is a QListView. It works ok, and I've even developed quick token based search which also works nicely, it's been fun.
But now I want to add a photo to the right of the dropdown, which will show the currently selected item (only one photo). I am thinking on how to develop this. I assume there's no straight way to do it with QListView. I wondering if it's possible to implement it using a QTableView, or, if I'd be better developing a custom widget with QListView as it is now + (let's say) a QLabel.
Just to clarify,
@
+--------------------+--------------------+
| | |
+--------------------+ |
| | |
+--------------------+ |
| | |
+--------------------+ |
| | |
+--------------------+--------------------+
@I guess I'd start by subclassing QListView but before investing a lot of time at that I want to be sure that I am not heading into the wrong direction or something.
I am asking for just a general pointer on the best way to take.
Thanks! :)
ps. The preview looked much better. I hope you can read the pseudo-image well enough to understand what I mean :)