Qt: Fixing constraints