Answer the question
In order to leave comments, you need to log in
Qt: how to get non-maximized window coordinates?
The task is to save the coordinates of the non-maximized window in the config. No matter how I tried, it didn't work. Expand the window, restart the program - it turns out that the expanded coordinates are saved.
Here is the code called from moveEvent and resizeEvent.
void fmMain::saveNonMaxGeometry()
{
if (!isMaximized()) {
nonMaxGeometry = geometry();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question