[PyQt] Beginner troubles with QlineEdit & SQLite3
Josh Flinner
joshfokis at gmail.com
Mon Jun 10 17:09:52 BST 2013
I am able to write to the database but I cannot get the text from my
lineEdit. My edit Strategy is on manual submit and then I call the
submitAll.
On Mon, Jun 10, 2013 at 10:55 AM, Ryan Hanson <crossrocker at gmail.com> wrote:
> Are you having trouble getting the text from your lineEdit or are you
> having trouble submitting that text to your database?
>
> For the latter you might try looking at setEditStrategy from here
> http://pyqt.sourceforge.net/Docs/PyQt4/qsqltablemodel.html
>
>
> On Mon, Jun 10, 2013 at 9:04 AM, Josh Flinner <joshfokis at gmail.com> wrote:
>
>> I am new to both python and PyQt so forgive my ignorance if it is an
>> obvious solution. I have been trying to link a couple of line edits to
>> update a new row in a SQLite database when a push button is clicked. I can
>> create the new row but cannot submit the data from the line edits to the
>> row. I am also using a table model view to display the database. I have
>> searched over documents and example codes for the past week or so. Again I
>> do apologize if it is an easy fix I just cannot seem to figure it out.
>>
>> _______________________________________________
>> PyQt mailing list PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130610/eb80df12/attachment.html>
More information about the PyQt
mailing list