<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I have a custom qquickitem that draw an opengl view. I wants to implement picking when I have a mousePressEvent : It works fine on Windows, but crash on Mac when I call any opengl functions.  I suppose I need to call a makeCurrent  before calling any opengl functions but I don't know how to do that . I have save a currentContext and associated qsurface when updateGL is called, then when I have a mousePressEvent I try to do a context->makeCurrent(surface) but it crash on mac ! </div>