Fix threading for Qt5.

Fix GL Context on Qt5.