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. Code example of item selector TreeView + splitter + item details pane GUI similar to Windows file explorer ?
Forum Updated to NodeBB v4.3 + New Features

Code example of item selector TreeView + splitter + item details pane GUI similar to Windows file explorer ?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 744 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.
  • E Offline
    E Offline
    EdOfTheMountain
    wrote on last edited by
    #1

    I am seeking code examples for a GUI similar to the Windows File Explorer, however, my application is not a file viewer. I am trying to create a GUI with:

    • Two panes separated by a vertical splitter.
    • The left pane is the navigator tree view
    • The right pane displays properties of item selected by navigator.
    • Details of the item selected in the left navigation pane are displayed in the item details on the right

    Several times I have tried the TreeView QAbstractItemModel approach when starting a new project. This feels like the right approach yet I find it hard to understand. When I put a break point where item data is retrieved there seems to be a lot of constant calls to retrieve the model's item data even when GUI is just sitting there without focus. How would you connect an item selected in the left navigation pane to the details pane?

    I keep resorting to implementation using TreeWidget and QTreeWidgetItem as it seems easier to understand the implementation.

    Thanks in advance for tips or suggestions,

    -Ed

    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