So basically you have a one pixel wide line and not a part of a frame which is usually at least two pixel wide (see QStyle::pixelMetric for PM_DefaultFrameWidth) Why don't you just use one of QPalette's Light, Midlight, Dark, Mid or Shadow values?
So basically you have a one pixel wide line and not a part of a frame which is usually at least two pixel wide (see QStyle::pixelMetric for PM_DefaultFrameWidth) Why don't you just use one of QPalette's Light, Midlight, Dark, Mid or Shadow values?
Yes, a one-pixel wide line. I honestly can't remember of wide the frame was when I tried QStylePainter::drawPrimitive(). I just know that it worked for the full frame. Anyway, I did succesfully use QPalette's Light, Midlight, etc. values before, but none of them corresponds to the actual colour used by the theme to render a frame, hence my original message.
My main point is that you can't get an OS agnostic consistent look (I don't think the theme draws such one pixel lines anywhere), so there is a question if it is worth trying at all.
Bookmarks