Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    3
    5
    906
    Loading More Posts
    • 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
      ysing last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • Y
          ysing last edited by

          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 Reply Quote 0
          • dheerendra
            dheerendra Qt Champions 2022 last edited by

            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 Reply Quote 0
            • Y
              ysing last edited by

              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 Reply Quote 0
              • First post
                Last post