Solved QScrollBar edges on all sides
-
@Phil-K said in QScrollBar edges on all sides:
How can I ensure my QScrollBar also draws those edge lines?
I don't know, but can you reproduce it via stylesheet with border on your own scrollbars?
-
I was hoping instead that I could possibly use a QFrame parent which might provide the 3 missing edges of the scrollbars, i.e. aligning the horizontal bar child to the bottom of a QFrame parent, but the scrollbar draws over small edge provided by the QFrame.
-
@Phil-K said in QScrollBar edges on all sides:
grid
are you sure, your issues aren't simply from the default spacing /margins a layout adds ?
you can set those to 0, IIRC they are not 0 by default
-
@J-Hilk Yep, set the margins to zero and still the same effect. If you look at the Qt sliders example below from your wiki, you can plainly see the same effect. The QScrollBar draws a perceptible edge on only one of the four sides. I suppose this is by design. It just looks "off" when side-by-side with a table view in which the edges are clearly seen.
-
@Phil-K ok, I see
looks fine on MacOS ;)
So, its probably something you can influence via Style options or stylesheet
-
This post is deleted! -
Hi
Do You mean this ? ( on windows)
-
This post is deleted! -
@mrjj Yes, your arrows are pointing to the 1 pixel edges on the horizontal and vertical that appear to be drawn when the scrollbars are rendered. The other 3 edges on each are not drawn.
-
@Phil-K
Ok.
Well that is by design as far as i know.