ghm
29th September 2011, 08:07
Hi.
I have a problem with twitching in my plot. This twitching comes when the y-, or x-axis is swapping between having a value label at the end or having a tick at the end.
It's best demonstrated by these two screens:
69186919
If you test with the oscilloscope example, and adjust the displayed seconds, back and forth, you will see what I mean by twitching.
This is a bit annoying, especially when having live values thats going up and down.
I have based my widget on the refreshtest example, and managed to work around the problem by setting:
canvas()->setFrameStyle(QFrame::Box | QFrame::Plain );
canvas()->setLineWidth(5);
But this adds a black border around the canvas, and I haven't figured out a way to make that border transparent, or inherit color from application.
If someone have a suggestion on how to workaround this, please let me know.
Gerhard
I have a problem with twitching in my plot. This twitching comes when the y-, or x-axis is swapping between having a value label at the end or having a tick at the end.
It's best demonstrated by these two screens:
69186919
If you test with the oscilloscope example, and adjust the displayed seconds, back and forth, you will see what I mean by twitching.
This is a bit annoying, especially when having live values thats going up and down.
I have based my widget on the refreshtest example, and managed to work around the problem by setting:
canvas()->setFrameStyle(QFrame::Box | QFrame::Plain );
canvas()->setLineWidth(5);
But this adds a black border around the canvas, and I haven't figured out a way to make that border transparent, or inherit color from application.
If someone have a suggestion on how to workaround this, please let me know.
Gerhard