FIX: Qt app fixes

Rebase of #174 with my fixes for `glfw` on top. @almarklein WDYT?