[PyQt] Event problem with QGLWidget in stacked widget on OS X

Chris Pezley chris.pezley at quantumwise.com
Mon May 9 09:37:29 BST 2016


Which OS X did you use to test this? If you want, I can see if I can 
spin up a parallels image with a minimum environment for this.

Chris

On 05/06/2016 05:27 PM, Phil Thompson wrote:
> On 6 May 2016, at 12:55 pm, Chris Pezley <chris.pezley at quantumwise.com> wrote:
>> I believe I have discovered a problem effecting PyQt on OS X. The issue is being able to get a QGLWidget into a state that causes all mouse over events to handle like mouse click events. This only occurs when using PyQt (normal Qt works).
>>
>> In essence, it occurs when having a QGLWidget in a stacked widget and switching that in an event handle by directly calling the stacked widget. The problem does not persist if signals are used. (Probably doesn't make sense until you look at the attached examples.)
>>
>>
>> The Problem:
>> Mouse over events are causing mouse click events in certain circumstances.
>>
>> To Reproduce:
>> Run the program in the attachments. Right click when over the GLWidget twice, and then move the mouse in and out of the GLWidget. Note: this only occurs in the python code.
>>
>> Effected platforms:
>> OS X 10.10.5
>> OS X 10.11.4
>>
>> Environment:
>> Qt 5.5.0 (this alone does not cause problems)
>> sip 4.16.9 + PyQt 4.11.4
>> sip 4.18 + PyQt 5.6 (only tested on 10.10.5)
> I can't reproduce this. I also can't imagine a circumstance where this might happen (except maybe different SIP versions somehow being used for different PyQt modules).
>
> Phil
>



More information about the PyQt mailing list