Added Qt based OpenGL support to the editor.

Inspired by Tiled. :)