PyQt5: specifying QSqlTableModel
Colin McPhail
colin.mcphail at mac.com
Fri Jun 4 08:45:36 BST 2021
Rich,
> On 3 Jun 2021, at 23:52, Rich Shepard <rshepard at appl-ecosys.com> wrote:
>
> ...
> I rewrote my files to be compatible with yours; running activitytypes.py
> still produced a blank window with the correct title.
>
> Have you your SQLite food database available? I need to figure out why you
> displayed a QTableView and I don't.
>
> Regards,
>
> Rich
I have attached foods.db. Note that it must be in the current working directory when you run my version of activitytypes.py. I've also attached a screenshot of the window I see.
For the record I'm using Python 3.9.5 and PyQt5 5.15.4 on macOS 11.4.
Regards,
Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foods.db
Type: application/octet-stream
Size: 40960 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210604/8d6f515b/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2021-06-04 at 08.23.42.png
Type: image/png
Size: 177316 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210604/8d6f515b/attachment-0001.png>
More information about the PyQt
mailing list