qt: Fix pinentry-curses fallback for qt5
* qt/main.cpp (main): Initialize QApplication later.
This fixes the curses fallback because with Qt5 the creation of
the auto_ptr for the application already initialized the XCB subsystem
and caused the abort of the application.
Also removes the usage of the deprecated auto_ptr.