PyQt6 not compatible with Qt 6.6 yet

Phil Thompson phil at riverbankcomputing.com
Sun Oct 15 17:17:22 BST 2023


On 15/10/2023 16:16, Phil Thompson wrote:
> On 15/10/2023 15:54, Ben Greiner wrote:
>> Careful with updating to recent Qt 6.6.0:
>> 
>> [  719s] make[1]: Entering directory
>> '/home/abuild/rpmbuild/BUILD/PyQt6-6.5.3/build/QtSql'
>> [  719s] g++ -c -pipe -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
>> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
>> -fstack-clash-protection -Werror=return-type -flto=auto -g -O2
>> -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API
>> =0x03060000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public
>> -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB
>> -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -I. -I..
>> -I/usr/include/python3.11 -I/usr/include/qt6
>> -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtG
>> ui -I/usr/include/qt6/QtSql -I/usr/include/qt6/QtCore -I.
>> -I/usr/lib64/qt6/mkspecs/linux-g++ -o sipQtSqlQSqlResult.o
>> sipQtSqlQSqlResult.cpp
>> 
>> [  721s]
>> /home/abuild/rpmbuild/BUILD/PyQt6-6.5.3/build/QtSql/sipQtSqlQSqlResult.cpp:
>> In function 'PyObject* meth_QSqlResult_boundValues(PyObject*,
>> PyObject*)':
>> [  721s]
>> /home/abuild/rpmbuild/BUILD/PyQt6-6.5.3/build/QtSql/sipQtSqlQSqlResult.cpp:1201:42:
>> error: taking address of rvalue [-fpermissive]
>> [  721s]  1201 |             sipRes = &sipCpp->boundValues();
> 
> IMHO it's a Qt bug. QSqlResult::boundValues() has been changed (for
> what looks like good reasons) but in an incompatible way.

...it's a bit more complicated. It seems that API elements have simply 
been removed in Qt v6.6.0, elements that have *not* previously been 
marked as deprecated. I don't know if this is a mistake or a change in 
policy.

Phil


More information about the PyQt mailing list