Qt 6: Remove code that relies on code deprecated in Qt 5
This prepares for the move to Qt 6. The used code is deprecated in Qt 5 and will be removed in Qt 6
This prepares for the move to Qt 6. The used code is deprecated in Qt 5 and will be removed in Qt 6