[問題] Qt QGLWidget updateGL問題

看板C_and_CPP作者 (囧)時間10年前 (2014/04/17 18:53), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
開發平台(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
文章代碼(AID): #1JJxAcC4 (C_and_CPP)