qt: remove use of deprecated methods
This MR will remove use of deprecated methods in qt5. Created by defining "-DQT_DISABLE_DEPRECATED_BEFORE=0x050F00" on compile time and fixing found issues (https://doc.qt.io/qt-6/portingguide.html). Main idea is to prepare and check how big effort is to migrate to qt6 at some point.