Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Why does restoreGeometry return false?

$
0
0
I have an application that saves its window state on shutdown using saveGeometry, and restores them on startup using restoreGeometry, all persisted using QSettings. This aspect works just fine. However, I’m now trying to implement the ability to restore the application to its ‘default’ state via a menu action. What I’m finding is that when the application is in the state where I’m trying to do this, restoreGeometry returns false. I’d guess that this is the expected behavior, but if that’s the case, how can I cause my widget to re-layout its components after it has already been displayed? Thanks.

Viewing all articles
Browse latest Browse all 22112


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>