Fixed QT_NO_OPENGL behaviour