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. How to export ChildItem which are select from QTreeWidgetItem to another Table?
Forum Updated to NodeBB v4.3 + New Features

How to export ChildItem which are select from QTreeWidgetItem to another Table?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 250 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.
  • F Offline
    F Offline
    FredericGeek
    wrote on last edited by
    #1

    I am going to export childitem from QTreeWidgetItem to another Table?

    for now i understood how to use enable Multi selection
    I use this function
    setSelectionMode(QAbstractItemView::MultiSelection)

    Next step I want to build a button event to export select items from my QTreeWidgetItem to another Table?

    Do you know where I can get the reference for this function which could output select item name(string)

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You're probably looking for QTreeWidgetItem::takeChildren() and QTreeWidget::takeTopLevelIem()

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • F Offline
        F Offline
        FredericGeek
        wrote on last edited by
        #3

        there are 5 children in TreeWidget and I use Ctrl button to select three of them.
        Is it possible to get the index of this TreeWidget?

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I'm pretty sure you can find a corresponding signal here.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1

          • Login

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