[Interest] QGuiApplication::commitDataRequest: QML window is not painted
alervdvcw at gmail.com
Sat Feb 27 14:52:49 CET 2021
I'm trying to add quit confirmation message at OS shutdown according to
I interact with the user via QML interface. It is asynchronous, so I use
slots/signals. And I use additional QEventLoop to stay inside of
QGuiApplication::commitDataRequest call while interacting with the user.
The trouble is that after I shutdown OS - my app prevents OS to shutdown
and it's good, but its screen is just white, or contains old state
without the confirmation dialog. I need to hide/restore window or change
its size, or do some mouse clicks inside of it to force it repaint. When
it repaint all is OK and my confirmation dialog is there.
Is this a bug? Is there a workaround?
This is the code I use:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest