Scroll bar overlaps on MAC only
-
I have a weird behavior on MAC only.
I use qt with C++.
When a list requires a scroll bar, the scroll bar overlaps the items in the list.
On windows it works fine and there is always a small space between the items and the scroll bar, but on MAC, no matter how much I extend the display, they are always overlap.
I tried to play with setContentsMargins for both the widget and the verticalScrollbar, change the width of the entire widget, and each list item separately, but nothing seems to help.
Any idea what could increase the space between the items and the scroll bar?windows:
MAC:
-
I have a weird behavior on MAC only.
I use qt with C++.
When a list requires a scroll bar, the scroll bar overlaps the items in the list.
On windows it works fine and there is always a small space between the items and the scroll bar, but on MAC, no matter how much I extend the display, they are always overlap.
I tried to play with setContentsMargins for both the widget and the verticalScrollbar, change the width of the entire widget, and each list item separately, but nothing seems to help.
Any idea what could increase the space between the items and the scroll bar?windows:
MAC:
-
Hi and welcome to devnet,
Did you build Qt yourself ?
Can you provide a minimal compilable example that shows this behavior ? -
This has nothing to do with QT, it's the way scroll bars look on recent Macs, when using the trackpad only. When you plug in a mouse, the scrollbars change back to the familiar style.
I have dialog elements that I want to line up with the contents of a QTableView, but I can't find any dimensions, anywhere that show a difference between the different views, even though they are obviously different sizes. You'd think it would have to be obvious, but none of the widget's dimensions change in any way that I can find.
I also notice that there are no events reported to the app when the scrollbars change. Just a Paint event. Even though the widget in the scroll area changes size, there is no Resize event.