QScrollBar fixed maximum size with both orientations
I'm trying to make my app scriptable and I want to let users to put scrollsbar horizontal or vertical.
The problem comes when I wanna config orientation together bar size, to become smaller. I'd use maximumHeight but, of course, when toggled to vertical it looks wrong. Without fixing maximums, toggles fine.
Is there any solution to fix it without write code to control orientation switching?
(If I understood correctly) Try using a custom signal that is emitted when he switches between vertical / horizontal and a slot that sets maximumHeight for horizontal and maximumWidth for vertical...