Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Advise: dropdown QStringList with photo to the right
Forum Updated to NodeBB v4.3 + New Features

Advise: dropdown QStringList with photo to the right

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 570 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    i92guboj
    wrote on last edited by
    #1

    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 :)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved