Did not work with Firebird 3.0.3 embedded without a running server or firebird.exe -a. It just started to work as a real embedded database and not a tcp based connection when using an empty hostName. Instead of:
const QString hostName = "localhost";
just
const QString hostName = "";
That helped finally!