Qt5 settings do not apply correctly