[問題] Qt QGLWidget updateGL問題

作者: biblegodbles (囧)   2014-04-17 18:53:21
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Qt 5.2.1
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
openGL
問題(Question):
小弟想將自己所創造的 QGLWidget 設定為QGraphicsView的 Viewport
並且在QGLWidget裡創造一個Thread,持續地去對QGLWidget updateGL
但是只要點選到所Show的視窗,就會產生錯誤訊息:
Cannot make QOpenGLContext current in a different thread
想請教大大們是哪的Code有問題!!
錯誤結果(Wrong Output):
Cannot make QOpenGLContext current in a different thread
程式碼(Code):(請善用置底文網頁, 記得排版)
http://ppt.cc/K6td

Links booklink

Contact Us: admin [ a t ] ucptt.com