[問題] Qt QGLWidget updateGL問題
開發平台(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
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.163.69.1
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1397732006.A.304.html