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. QListView::iconMode - icons on top of icons
Forum Updated to NodeBB v4.3 + New Features

QListView::iconMode - icons on top of icons

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 594 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.
  • N Offline
    N Offline
    Neko
    wrote on last edited by
    #1

    Hey guys,

    so a few days ago i have created a QListView as IconMode and i am adding my required data as icons to it. But now i want to have small overlay icons above my current icons.

    For example:
    I have an QLabel with an Icon set and i am displaying it in my ListView.
    This Icon should have a small icon (for example in the bottom right corner).
    How can i achieve this ?
    Is this small icon also able to be clicked ?

    Hope you have a great day and thanks for reading.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      QStyledItemDelegate comes to mind for that.

      You can re-implement the paint event to add your overlay.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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