Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. tree

    Log in to post
    • All categories
    • O

      Unsolved Simple Tree Model derived from QAbstractItemModel inserting new Nodes?
      General and Desktop • tree model treemodel qabstractitemmo • • Opa114

      1
      0
      Votes
      1
      Posts
      601
      Views

      No one has replied

    • M4RZB4Ni

      Unsolved Change StackedWidget Pages With TreeWidget
      General and Desktop • stackedwidget tree widget signal & slot • • M4RZB4Ni

      5
      0
      Votes
      5
      Posts
      1843
      Views

      c.savur

      @M4RZB4Ni

      You may want to see this example

      http://doc.qt.io/qt-5/qtwidgets-dialogs-configdialog-example.html

    • A

      Unsolved Searching for nearest node in n-ary tree?
      General and Desktop • tree n-ary-tree search • • alogim

      3
      0
      Votes
      3
      Posts
      1301
      Views

      kshegunov

      @alogim
      You're sort of naively using the simplest form of the tree data structure. If I understand your question correctly you should look at some BSP tree structure implementations, as they seem to suit your case quite well.

    • P

      Make TreeView flickable
      QML and Qt Quick • tree view flickable 5.5 • • Pheelbert

      0
      0
      Votes
      0
      Posts
      564
      Views

      No one has replied

    • P

      [Request] TreeView C++ model to qml example
      QML and Qt Quick • treeview tree view example qml • • Pheelbert

      4
      0
      Votes
      4
      Posts
      5499
      Views

      p3c0

      @Pheelbert Yes missed the mentioning of data() here.
      You're Welcome :-) Happy Coding.

    • J

      Total count of items in a tree view
      General and Desktop • tree count • • joeydonovan4

      5
      1
      Votes
      5
      Posts
      3690
      Views

      V

      Good point Chris. The reason why I suggested otherwise is one can often store data items in QLists or QMaps that might also be needed besides a simple item counter when associated with QTreeView. But I agree, extending the associated 'model' as you suggested is much more appropriate.

      -Vince