Draw outside of BoundingRect via QPainter
Solved
QML and Qt Quick
-
Hello,
I made a radialbar taking this one as a base : https://arunpkqt.wordpress.com/2017/03/31/qml-radialbar-component/
I added a few thing on it and I the main elements are low and high limit. It looks like that :
With this point of view everything seems fine but when I change the value of limit and it comes close to an angle of pi,2pi of 0.5pi the boudingrect cut the line. Here is an example :
How can I manage to keep my entire line ?
Thank you in advance. -
You can't paint outside of a widgets' rect in QWidget::paintEvent().
To accomodate for the graphical bars, you'll probably need to make the widget's size bigger.