Tested with Kompare (only KF6 app I currently can run). Should also fix any other KPart with ui.rc file embedded in shells like Konqueror, Ark (preview),...
@alex @vkrause