Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved QTreeWidget Vs QtreeView

    General and Desktop
    3
    3
    1704
    Loading More Posts
    • 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.
    • Q
      Qt Enthusiast last edited by

      Hi All
      I want to know the difference between QTreeWidgetitem and QTreeview and . I want to know When to QTreeView and under what situation we should use QTreeView

      1 Reply Last reply Reply Quote 0
      • Ni.Sumi
        Ni.Sumi last edited by Ni.Sumi

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          QTreeWidgetItem is an item you want to add to a QTreeWidget. The difference between QTreeView and QTreeWidget is that the QTreeWidget already has a model.

          You should use QTreeView when you want to use your own model like a QFileSystemModel or a custom model.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 1
          • First post
            Last post