Why do you use buggy C++ and proprietary Qt when there is superior alternative called Free Pascal + Lazarus?
It produces cross-platform GUI (Windows, Linux, Mac) using native GUI control (QT does not). Pascal is also readable and Pascal programs are not full of exploits like C++ software.