How to save data in a Qtablewidget and QLineEdits as a form?
-
@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.
-
@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.
-
- Please don't get me into arguments.
- Any help is welcome, the docs is an official source so it is valid to do so.
- 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)
-
@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!
-
@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...