When building with Qt6, disable as much deprecated code as possible
And ensure deprecation warnings for bot Qt and KF versions higher than the specified ones are shown when building.
And ensure deprecation warnings for bot Qt and KF versions higher than the specified ones are shown when building.