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. Presenting different type of visualizations in the same tree
Forum Updated to NodeBB v4.3 + New Features

Presenting different type of visualizations in the same tree

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

    Can I create a QTTableView inside a QTTreeview? I want to present hierarch text data, having option to display also a table in my tree.

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

      Hi and welcome to the forums.
      Yes possible to insert widgets but it will become heavy to scroll and redraw pretty fast on anything besides a powerful pc.
      A normal design would to use the tree as a navigator and some nodes would then show extra data next to the Tree.

      Do you need to in place edit those tables ? If not you can render the Table to an image and show that inline.
      That would allow having far more items. To edit you would open a dialog and recreate this image after edit.

      M 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi and welcome to the forums.
        Yes possible to insert widgets but it will become heavy to scroll and redraw pretty fast on anything besides a powerful pc.
        A normal design would to use the tree as a navigator and some nodes would then show extra data next to the Tree.

        Do you need to in place edit those tables ? If not you can render the Table to an image and show that inline.
        That would allow having far more items. To edit you would open a dialog and recreate this image after edit.

        M Offline
        M Offline
        MaySH
        wrote on last edited by
        #3

        @mrjj Thanks for the quick response!
        I need sorting and filtering options in the tables. Your suggestion to view the tables next to the tree, is it as a response to selected data ? (the user will click the button on a specific value in the tree and then a table will pop? is that what you meant?)

        If you have other idea on how to present multiple visualization data together instead of treeview, will be glad to hear.

        mrjjM 1 Reply Last reply
        0
        • M MaySH

          @mrjj Thanks for the quick response!
          I need sorting and filtering options in the tables. Your suggestion to view the tables next to the tree, is it as a response to selected data ? (the user will click the button on a specific value in the tree and then a table will pop? is that what you meant?)

          If you have other idea on how to present multiple visualization data together instead of treeview, will be glad to hear.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @MaySH
          Hi
          Yes almost, i don't mean anything to pop as such, simply show in an area next to tree.
          So when Tree selection changes, you check model if data is a table (should be viewed as table) and then show the table next to the Tree.
          This of cause won't work if you need to show multiple tables at the same time.

          -If you have other idea on how to present multiple visualization data together instead of treeview, will be glad to hear.
          Depends on if you need random level of children (deep tree) or just Top Level with children.
          If only top level, then something like the QToolBox widget can be used.

          M 1 Reply Last reply
          0
          • mrjjM mrjj

            @MaySH
            Hi
            Yes almost, i don't mean anything to pop as such, simply show in an area next to tree.
            So when Tree selection changes, you check model if data is a table (should be viewed as table) and then show the table next to the Tree.
            This of cause won't work if you need to show multiple tables at the same time.

            -If you have other idea on how to present multiple visualization data together instead of treeview, will be glad to hear.
            Depends on if you need random level of children (deep tree) or just Top Level with children.
            If only top level, then something like the QToolBox widget can be used.

            M Offline
            M Offline
            MaySH
            wrote on last edited by
            #5

            @mrjj Your suggestion sounds good, I will try it! which feature should I used to make it happen? ( I'm pretty new in QT)

            mrjjM 1 Reply Last reply
            0
            • M MaySH

              @mrjj Your suggestion sounds good, I will try it! which feature should I used to make it happen? ( I'm pretty new in QT)

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @MaySH
              Hi
              Well for the area where the table will be shown for some of the nodes I would
              use a QStacked widget with 2 pages so I can have one with the table, and a blank one to show
              for nodes that dont show a table. That is often easier than show / hide stuff when the tree is clicked.

              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