Qt dev branch: "invalid covariant return type" for QEvent

Phil Thompson phil at riverbankcomputing.com
Thu Jul 14 09:50:16 BST 2022


On 13/07/2022 11:41, Florian Bruhin wrote:
> On Wed, May 25, 2022 at 05:06:16PM +0100, Phil Thompson wrote:
>> 
>> On 24/05/2022 19:34, Florian Bruhin wrote:
>> > Hi,
>> >
>> > When trying to build the current dev branch of Qt 6 against the
>> > currently released PyQt:
>> >
>> >     PyQt-builder 1.12.2
>> >     PyQt6-sip 13.3.1
>> >     PyQt6 6.3.0
>> >
>> > I get:
>> >
>> >     /tmp/tmplprdnj33/QtGui/sipQtGuiQCloseEvent.cpp:47:16: error:
>> > invalid covariant return type for ‘virtual QEvent*
>> >
>> > [...]
>> >
>> > With similar errors for other clone() implementations too:
>> > https://paste.the-compiler.org/view/6c24584a
>> >
>> > Is that an issue in sip/PyQt? A backwards-incompatible change in Qt?
>> > Something else entirely?
>> 
>> It's an addition to the Qt API that PyQt isn't aware of but needs to 
>> be.
> 
> Unfortunately, this still prevents me from testing my project against
> Qt 6.4, which is now at Beta 2.
> 
> Wasn't there a tool at some point which would let me take the current
> PyQt6 wheels and replace the Qt install by a newer one? I guess that
> would work then, and I'm pretty sure I used it before. But now, I can't
> find a trace of it in the PyQt5 or PyQt6 docs. What am I missing?

https://www.riverbankcomputing.com/static/Docs/PyQt-builder/pyqtbundle.html

Phil


More information about the PyQt mailing list