Enabled most gcc and clang warnings and fixed them. Also fixed QT deprecated functions
I enabled/fixed almost all the gcc and clang warnings. I don't have a windows machine to test the MSVC settings but I'll enable it in CI shortly.
I also fixed all the QT deprecated warnings