Check if the GL widget can get a valid GL context

The slot needs to ensure other pieces can also cleanly exit if the
required OpenGL version is not available at runtime.

Change-Id: I382eee8b90fe022ac62fa8a0e5e187a8473297dd
Merge topic 'invalid-context' into master

f3439a9a Check if the GL widget can get a valid GL context