Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Multi-column QML TreeView

Multi-column QML TreeView

Scheduled Pinned Locked Moved Unsolved Qt for Python
pysideqt for python
3 Posts 2 Posters 554 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.
  • D Offline
    D Offline
    demberto
    wrote on 10 Apr 2023, 14:00 last edited by
    #1

    I want a property editor like the one Qt Designer has but, by using QML TreeView (because I have nested properties) backed by a QAbstractItemModel.

    42fdb55f-d0d5-4aad-871e-784e282348c0-image.png

    Is this possible? QTreeView already supports this scenario.
    I also want to use custom delegate as every property will have a different editor.

    K 1 Reply Last reply 10 Apr 2023, 14:21
    0
    • D demberto
      10 Apr 2023, 14:00

      I want a property editor like the one Qt Designer has but, by using QML TreeView (because I have nested properties) backed by a QAbstractItemModel.

      42fdb55f-d0d5-4aad-871e-784e282348c0-image.png

      Is this possible? QTreeView already supports this scenario.
      I also want to use custom delegate as every property will have a different editor.

      K Offline
      K Offline
      kaushikv
      wrote on 10 Apr 2023, 14:21 last edited by
      #2

      @demberto @demberto - try this , it looks very promising:
      https://github.com/Daguerreo/QMLTreeView

      I tried the single column only , using above example and it works perfectly.

      D 1 Reply Last reply 10 Apr 2023, 14:46
      0
      • K kaushikv
        10 Apr 2023, 14:21

        @demberto @demberto - try this , it looks very promising:
        https://github.com/Daguerreo/QMLTreeView

        I tried the single column only , using above example and it works perfectly.

        D Offline
        D Offline
        demberto
        wrote on 10 Apr 2023, 14:46 last edited by
        #3

        @kaushikv Why will I use that when QML already has a treeview and the model isn't the problem? Plus I tagged thi question as Qt for Python.

        1 Reply Last reply
        0

        3/3

        10 Apr 2023, 14:46

        • Login

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