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 in a Qtablewidget and QLineEdits as a form?

How to save data in a Qtablewidget and QLineEdits as a form?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 584 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.
  • C Offline
    C Offline
    CEO.
    wrote on last edited by
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • C CEO.

      This post is deleted!

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

      @CEO
      There does not seem to be any link between your standalone line edits and your table widget. And you only read stuff from the table widget to submit.

      In any case, I suggest you look at QDataWidgetMapper to link your widgets to your model. As well as perhaps using QSqlTableModel for the database model instead of hand-coding your own stuff in Python.

      C 2 Replies Last reply
      2
      • JonBJ JonB

        @CEO
        There does not seem to be any link between your standalone line edits and your table widget. And you only read stuff from the table widget to submit.

        In any case, I suggest you look at QDataWidgetMapper to link your widgets to your model. As well as perhaps using QSqlTableModel for the database model instead of hand-coding your own stuff in Python.

        C Offline
        C Offline
        CEO.
        wrote on last edited by
        #3

        @JonB thanks for your comment. I've fixed it. I added the qlineEdits in the rowdata. .i.e I did this: rowdata = [my qlineEdits were listed here]

        1 Reply Last reply
        0
        • JonBJ JonB

          @CEO
          There does not seem to be any link between your standalone line edits and your table widget. And you only read stuff from the table widget to submit.

          In any case, I suggest you look at QDataWidgetMapper to link your widgets to your model. As well as perhaps using QSqlTableModel for the database model instead of hand-coding your own stuff in Python.

          C Offline
          C Offline
          CEO.
          wrote on last edited by
          #4

          @JonB also, whenever I ask questions, I will appreciate whoever wants to answer should do so with some lines of codes to throw more insight, not to refer me to any complicating documentation.

          If you have knowledge of my request, then be cheerful enough to write some codes, even if it's a line. That's what I usually see in stackoverflow from intelligent minds. Mr. Edwin yllnase does that a lot by guiding people with codes.

          eyllanescE JonBJ jsulmJ 3 Replies Last reply
          0
          • C CEO.

            @JonB also, whenever I ask questions, I will appreciate whoever wants to answer should do so with some lines of codes to throw more insight, not to refer me to any complicating documentation.

            If you have knowledge of my request, then be cheerful enough to write some codes, even if it's a line. That's what I usually see in stackoverflow from intelligent minds. Mr. Edwin yllnase does that a lot by guiding people with codes.

            eyllanescE Offline
            eyllanescE Offline
            eyllanesc
            wrote on last edited by eyllanesc
            #5

            @CEO

            1. Please don't get me into arguments.
            2. Any help is welcome, the docs is an official source so it is valid to do so.
            3. Qt forum does not have the same rules as SO, probably your post would have been closed in SO instead here if it is allowed, so the same applies to the answers, in SO the answers that are only links or only recommendations are not accepted but here they are accepted. So be grateful if you receive help since with those kinds of attitudes probably fewer people will try to help.

            Note: I do not usually answer questions with code because the OP asks me, those questions that ask me I want a code for X without showing any attempt I give them a downvote and vote for closing them in SO, here instead it is not possible for that many poor quality posts (in my opinion) are still open.

            I also do not like the answers that are only code, I take the time to explain each answer so although there are some changes in Qt they are still applicable (obviously changing the code a bit)

            If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

            1 Reply Last reply
            1
            • C CEO.

              @JonB also, whenever I ask questions, I will appreciate whoever wants to answer should do so with some lines of codes to throw more insight, not to refer me to any complicating documentation.

              If you have knowledge of my request, then be cheerful enough to write some codes, even if it's a line. That's what I usually see in stackoverflow from intelligent minds. Mr. Edwin yllnase does that a lot by guiding people with codes.

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

              @CEO
              So far, just about anytime you ask a question you complain about not getting the answer from me or whoever in the format you deem acceptable.

              You have also expressed your disappointment at the quality of answers you get in this forum in your My disappointment over this page thread, and in others.

              Since you are much happier with the answers you get at stackoverflow, why don't you ask there? And take the time to pose your questions with the clarity and detail they demand.

              So I'll answer questions the way I see fit. I am irritated by the number of questioners who want to come here and complain about the service they are not getting. If you don't like it, go somewhere else!

              1 Reply Last reply
              0
              • C CEO.

                @JonB also, whenever I ask questions, I will appreciate whoever wants to answer should do so with some lines of codes to throw more insight, not to refer me to any complicating documentation.

                If you have knowledge of my request, then be cheerful enough to write some codes, even if it's a line. That's what I usually see in stackoverflow from intelligent minds. Mr. Edwin yllnase does that a lot by guiding people with codes.

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @CEO said in How to save data in a Qtablewidget and QLineEdits as a form?:

                not to refer me to any complicating documentation

                Why should anybody spend own time to write code for you if you do not even bother to read "complicating documentation"?
                People here are volunteers and nobody has to write code for anybody...

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

                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