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. read and store the checked items from the Qtreewidget

read and store the checked items from the Qtreewidget

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 564 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.
  • K Offline
    K Offline
    kook
    wrote on last edited by
    #1

    Greetings....
    i have a tree and the child items are checkable, now i want to store the checked items to a list
    how do i get the checked items

    this is how my tree looks, after checking the items and pressing the select i want to store them in a list
    Screenshot from 2021-10-05 13-07-01.png
    (i am pretty new to Qt started using it exactly a month back please be kind)
    thanks in advance

    jsulmJ 1 Reply Last reply
    0
    • K kook

      Greetings....
      i have a tree and the child items are checkable, now i want to store the checked items to a list
      how do i get the checked items

      this is how my tree looks, after checking the items and pressing the select i want to store them in a list
      Screenshot from 2021-10-05 13-07-01.png
      (i am pretty new to Qt started using it exactly a month back please be kind)
      thanks in advance

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @kook said in read and store the checked items from the Qtreewidget:

      how do i get the checked items

      https://doc.qt.io/qt-5/qtreewidgetitemiterator.html
      https://doc.qt.io/qt-5/qtreewidgetitem.html#checkState

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply
      4
      • jsulmJ jsulm

        @kook said in read and store the checked items from the Qtreewidget:

        how do i get the checked items

        https://doc.qt.io/qt-5/qtreewidgetitemiterator.html
        https://doc.qt.io/qt-5/qtreewidgetitem.html#checkState

        K Offline
        K Offline
        kook
        wrote on last edited by
        #3

        @jsulm thank you for the solution

        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