[PyQt] Possible incompatibility between latest PyQt5 and QScintilla wheels

Phil Thompson phil at riverbankcomputing.com
Thu Oct 3 10:18:46 BST 2019


On 03/10/2019 09:20, Detlev Offenbach wrote:
> Am Mittwoch, 2. Oktober 2019, 22:36:33 CEST schrieb Phil Thompson:
>> On 02/10/2019 19:11, Detlev Offenbach wrote:
>> > Hi,
>> >
>> > I just observed a strange issue when using eric6. The focus handling
>> > does not
>> > work correctly when a calltips boy is shown. I suspect that this is
>> > caused by
>> > some incompatibility between QScintilla (compiled agains Qt 5.12.x) and
>> > PyQt5
>> > (compiled against Qt 5.13.1). All was installed via pip install. The
>> > issue
>> > here is, that the focus is stolen by the calltips box without
>> > QScintilla
>> > receiving a focusOut event. When the calltips box is closed, QScintilla
>> > doesn't get a focusIn event.
>> >
>> > After reverting PyQt5 to 5.13.0 everything worked again as it did for
>> > years.
>> >
>> > Maybe a QScintilla compiled against Qt 5.13.1 could fix it. Maybe there
>> > is an
>> > issue in Qt 5.13.1. Sorry for not being able to specify what is the
>> > root
>> > cause.
>> 
>> I think it is more likely that it is an issue with Qt 5.13.1 and so
>> re-compiling against that version won't help.
>> 
>> There is really nothing I can do when a new Qt release has N bug fixes
>> and M regressions.
> 
> However, the interesting thing is, I only observed it with QScintilla 
> in
> relation to Calltips/Completion lists. Does QScintilla do any magic 
> here?

I don't know what you mean by "magic". It uses the documented Qt API.

Phil


More information about the PyQt mailing list