[qt5] Use a gconf key to configure framebuffer orientation and fix window close