Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QScrollBar fixed maximum size with both orientations
ilean last edited by
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?
b1gsnak3 last edited by
(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...