Plot in a tabbed MDI window briefly shows coarse image #158
allenbarnett5
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi: My application uses the TabbedView QMdiArea interface. I've noticed that when I switch between tabs which show JKQTPlotter plots that there is a brief image of a very coarse rendition of the plot before it draws the plot at the correct resoution. This appears to be because QMdiArea sets the window that's being hidden back to its un-maximized size (i.e., it calls showNormal on the widget). Therefore, when you show it again, JKQTPlotter has to draw it at the maximized size again. I was wondering if there is a way to defer the rendering until the window size settles down? I tried setting the delayed resize time to 1 second, but that only seemed to prolong the coarse view for 1 second. Most likely I don't know what I'm doing :-)
Below is the smallest program I could think of to reproduce the issue. If you click "Button 1" it will open a new tab with a plot and there will be a brief image of a coarse version of the plot. If you switch between a couple of plot windows, you can see the resize effect.
I've tested this on linux and windows with Qt 6.9.3 and JKQTPlotter 5.0.0.
I'd appreciate any kind of guidance to reduce the effect.
Thanks,
Allen
Beta Was this translation helpful? Give feedback.
All reactions