Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. How to access data in individual rows in a QTableWidget and write into xml file

How to access data in individual rows in a QTableWidget and write into xml file

Scheduled Pinned Locked Moved Unsolved C++ Gurus
4 Posts 2 Posters 700 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.
  • Q Offline
    Q Offline
    QtisHard
    wrote on last edited by
    #1

    I have a table widget in which the user can enter values.

    How can I access the values entered by the user in each individual row and write them into xml file.
    C++ is the language I am working in

    JonBJ 1 Reply Last reply
    0
    • Q QtisHard

      I have a table widget in which the user can enter values.

      How can I access the values entered by the user in each individual row and write them into xml file.
      C++ is the language I am working in

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @QtisHard
      Similar to your other question on this matter, suitable Googling might lead you to e.g. https://www.qtcentre.org/threads/68885-How-to-save-QTreeWidget-items-in-an-XML-file

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        QtisHard
        wrote on last edited by
        #3

        @JonB I wish to save the values from a table into an xml file.
        Not the values from the tree

        JonBJ 1 Reply Last reply
        0
        • Q QtisHard

          @JonB I wish to save the values from a table into an xml file.
          Not the values from the tree

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @QtisHard
          I misread as QTreeWidget like your other one. There are equally results from Googling QTableWidget XML, some on this forum, did you have a look at them? You just take the values and put them into your XML or QDomDocument.

          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