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 inside QTreeWidget

QListView inside QTreeWidget

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.9k Views
  • 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.
  • P Offline
    P Offline
    poor_robert
    wrote on last edited by
    #1

    Hello,

    I was just wondering if it is possible to place QListView (or QListWidget) inside QTreeWidget. By "inside" I mean structure like this:

    [item_1st_Level]

    ------[item_2nd_Level]

    ------------[item_3rd_Level]

    | 1 2 3 4 |
    | 5 6 7 8 |

    ------------[item_3rd_Level]

    Where item_1st_Level, item_2nd_Level, item_3rd_Level are regular QTreeWidgetItem and numbers 1 2 ... 8 represent QListView which has ViewMode set as IconMode.

    Do You have any ideas how to it?
    I was thinking about subclassing QTreeWidgetItem but I don't know how to place QListView inside it.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Did you look into using QTitanDataGrid? Qt's own item view stuff is really not suitable for this. You might get it to work with a lot of hacks and coding, but it is not going to be pretty. In fact, I think it will be a nightmare to maintain.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        poor_robert
        wrote on last edited by
        #3

        Thanks Andre for Your help. I will have a look at it, but at the moment I changed idea of solving this problem.

        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