[PyQt] [PYQT5]display sqlite data in Qtableview Python

Florian Bruhin me at the-compiler.org
Sat Jul 21 20:17:38 BST 2018

On Sat, Jul 21, 2018 at 11:23:25PM +0430, Maziar Parsijani wrote:
> *Hi*
> How could I display my *sqlite* database in *python* *Qtableview*
> For example
> My database has 3 columns and many rows
> I want to fetch them all in gui table using *Qtableview*

As I've already answered before[1], this can be done with a
QSqlTableModel hooked up to that QTableView. If you still have trouble,
please be more specific...


[1] https://www.riverbankcomputing.com/pipermail/pyqt/2018-July/040560.html

https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180721/75f9aa3a/attachment.sig>

More information about the PyQt mailing list