Qt 6.11 is out! See what's new in the release
blog
Pause QWebView...?
General and Desktop
5
Posts
2
Posters
1.6k
Views
1
Watching
-
Hi,
I've got a QTabView that contains a QWebView that is running some JS game code in a <canvas>.
However, I'm finding that when I 'tab away' from the QWebView, it's still consuming CPU.
So, is there any way to 'pause' a QWebView, so it's not using CPU when it's not visible?
Bye!
Mark -
Didn't notice that, but it doesn't seem to help. I think it only stops the page loading, not a running JS app on an already loaded page.
I guess I can always navigate to a 'null' page when user tabs away, although it might be glitchy when they tab back.