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. Selection between Qtreeview and Qtree widget
Forum Updated to NodeBB v4.3 + New Features

Selection between Qtreeview and Qtree widget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 428 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.
  • 123newuser1 Offline
    123newuser1 Offline
    123newuser
    wrote on last edited by
    #1

    i want to develop an application which reads a file and populate a tree when i click tree item /object it should show the content from that i proceed on processing the messages and plotting the charts etc

    now i am confused with which one to choose between treeview and tree widget
    on what basis i should make my decision.

    1 Reply Last reply
    0
    • AxelViennaA Offline
      AxelViennaA Offline
      AxelVienna
      wrote on last edited by
      #2

      QTreeWidget is a convenience wrapper around QTreeView. By using a pre-defined tree model, it provides very easy access at the cost of flexibility. Nevertheless, QTreeWidget provides columns, icons, you can place other widgets (buttons, labels, …) into a tree item and it is fully drag and drop enabled. If you do not worry about a tree model specific to your application and this is your first time using a tree: Go for QTreeWidget. If you want to make it sophisticated and you are ready to spend a little time investigating the possibilities of a tree model, go for QTreeView.

      C++ and Python walk into a bar. C++ reuses the first glass.

      1 Reply Last reply
      4
      • 123newuser1 123newuser has marked this topic as solved on
      • 123newuser1 123newuser marked this topic as a regular topic on

      • Login

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