The problem was solved recompiling Qt with shared libraries.