<div dir='auto'><div>Hi Hugh</div><div dir="auto"><br></div><div dir="auto">GUI elements are normally only updated on the main thread, so I suspect you need to synchronize your callback from the worker thread. I'm not familiar with Qt, but it seems to be documented. </div><div dir="auto">http://www.informit.com/articles/article.aspx?p=1405551&seqNum=3</div><div dir="auto"><br></div><div dir="auto">Todd<br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On 2 Apr 2018 10:00 p.m., lor fal <lorfalwit@gmail.com> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all:<div><br></div><div>I am using QVTKOpenGLWidget to bridge between Qt and Vtk. However, when I trying to call vtkRenderWindowInteractor::Render in worker thread, it always report error like "makeCurrent() error", which seems something wrong while changing OpenGL context. I have googled my questions and found some suggestions but none of them could work.</div><div><br></div><div>Does anybody know exactly how to render images in worker thread?</div><div><br></div><div>Thanks in advance.<br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>Best regards,<br>Hugh Lo</div></div></div>
</div></div>
</blockquote></div><br></div></div></div>