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. Nested images list in QWidget.
Forum Updated to NodeBB v4.3 + New Features

Nested images list in QWidget.

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 209 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.
  • August WienerA Offline
    August WienerA Offline
    August Wiener
    wrote on last edited by August Wiener
    #1

    Hello there!
    In my app I have list of icons from which I can select interesting ones via QListWidget. I want to make some nested elements - some icons to represent group of images, which should expand and show nested icons by click, and some simple ones. What is the best way to do that? I didn't find an info QListWidget can provide this functionality.

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

      Hi,

      That's because it does not provide such a functionality.

      From the looks of it, you will need a custom QStyledItemDelegate to draw your groups.

      You will likely need to move to QListView and a custom model in order to store the grouping information somewhere.

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

      August WienerA 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        That's because it does not provide such a functionality.

        From the looks of it, you will need a custom QStyledItemDelegate to draw your groups.

        You will likely need to move to QListView and a custom model in order to store the grouping information somewhere.

        August WienerA Offline
        August WienerA Offline
        August Wiener
        wrote on last edited by
        #3

        @SGaist thanks alot!

        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