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 save data from different pages in the same row of an SQLite table ?
QtWS25 Last Chance

How to save data from different pages in the same row of an SQLite table ?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.1k 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.
  • Y Offline
    Y Offline
    ysing
    wrote on last edited by
    #1

    Hello,

    I want to pass the user name from one page to another page that contains a form to fill with personal data and then add all of these information together in he the same row of my SQLite table .

    But I didn't know how to do this?

    Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What part you don't know about ?

      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
      0
      • Y Offline
        Y Offline
        ysing
        wrote on last edited by
        #3

        Hi,

        I don't know how to keep the user name since this one has made a successful log in and then store it in my data base table with the form information .

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          My inputs.

          1. Try to understand how db works. How to create table, how to insert data into table. This will help you.
          2. You are talking about your internal logic of your program. Please try to store the your internal information(e.g who logged in ) in some variables. This is purely logic of your program.
          3. When you want to store the information, you need to collate all the information and the dump data to db.

          I'm sure this more of programming logic question.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            ysing
            wrote on last edited by
            #5

            Thank you Dheerendra.

            1. I know how to insert data into table and how to create a table .

            2. OK, I will try to put my user name in a variable .

            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