Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Qt 5: Error : cannot make OpenGL Context current in a different thread

$
0
0
Hi (Sorry for my poor English Speaking) I use Ubuntu. First, I run this code [mih.voxindeserto.de] in qt4 and it was ok! Now, when (after modify it’s Include Classes for Qt5) I run it under Qt 5, there’s this runtime Error: cannot make OpenGL Context current in a different thread I thinks the problem is around the makeCurrent() function and this link [qt-project.org] says :“If you call this( makeCurrent() ) from a thread other than the main UI thread, make sure you’ve first pushed the context to the relevant thread from the UI thread using moveToThread().” The Problem is that I don’t know where i should put the “moveToThread()” function (in general or in this example). Help me plz :-(

Viewing all articles
Browse latest Browse all 13965

Latest Images

Trending Articles



Latest Images