Crasher in PyQt6 QSqlTableModel

Phil Thompson phil at riverbankcomputing.com
Wed Jan 7 16:42:07 GMT 2026


On 31/12/2025 12:52, ekhumoro wrote:
> Hello
> 
> Whilst porting some code from PyQt5 to PyQt6, I found that attempting
> to access QSqlTableModel.query() in PyQt6 causes a crash. The same
> code in PyQt5 has never had this problem.
> 
> A minimal test is given below, but unfortunately I am not able to
> provide a useful back-trace. However, the same test does not crash
> when run with PySide6 using the same Qt6 library, so this does seem to
> be a bug in PyQt6. I also tested using various other pip-installed
> versions of PyQt6 in a venv, including 6.5.3, 6.8.0 and 6.10.1 - but
> they all have the same problem. This is on Linux, using either
> Python-3.13 or Python-3.9.

Should be fixed in the next snapshot.

Thanks,
Phil


More information about the PyQt mailing list