Use KMainWindow if KF5 integration is enabled.