[Interest] Wrong position QStyleOptionProgressBar on macOS
john at wavemetrics.com
Fri Mar 20 20:46:41 CET 2020
Alot of QStyle code seems to think that all drawing will be done in a widget solely occupied by whatever it is that QStyle is drawing. I guess folks like you and me who try to use QStyle to get cross-platform control appearance for sub-rects of a widget aren't very common.
I finally did this for QStyleProgressBar:
A few QStyle things mess with the QPainter transformation matrix. In that case, the only thing I can find to work around the problems is to paint the QStyle object into a QImage or QPixmap, then draw that image wherever you need it.
I have filed bugs against some of these problems, and gotten very little attention.
> On Mar 20, 2020, at 12:02 PM, Roman Wüger <roman.wueger at gmx.at> wrote:
> I use QStyleOptionProgressBar on macOS Catalina with Qt 5.14.1 and tried versions back to 5.11.3.
> In a Table the progressbar is always displayed in row 0 and column 0 which is wrong even the current row is 6 or something like that and column is 1 or similar.
> Any hints on this issue?
> Best Regards
> Interest mailing list
> Interest at qt-project.org
More information about the Interest