-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window State Not Persisted After Restart: Fails to Remember Full-Screen and Window Sizes #418
Comments
I agree with John's request.
v037.1 on Manjaro Linux
73
LU1IDC, Diego
El sáb, 20 jul 2024 10:24, oh2gba ***@***.***> escribió:
… This is my screen before closing:
Screenshot_1.png (view on web)
<https://github.com/user-attachments/assets/1523b912-5f27-4d69-a1f9-d9a01cc4b1b1>
Close Qlog and reopen it again, the size of the main window is smaller
now, and I have to maximize it
Screenshot_2.png (view on web)
<https://github.com/user-attachments/assets/cda32db8-d443-4be6-9b8c-81db3d1fda0b>
After maximizing, the window sizes are not the same anymore, see
dx-cluster and online-map are smaller now.
Screenshot_3.png (view on web)
<https://github.com/user-attachments/assets/3dc1432d-cf71-4c88-9ad7-27f1bbada638>
It would be *so* nice if Qlog would just remember all sizes! Perhaps not
a bug, but a kind request :)
John
—
Reply to this email directly, view it on GitHub
<#418>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIFJ5JENEF2HKLKBCQDOKGLZNJQKXAVCNFSM6AAAAABLF6FCP6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDAOBZG44TONQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I know about the issue but I don't know how to fix it. It occurs only in case when the full screen layout is saved. |
Suggestion: If a solution can be found here, perhaps the position and zoom factor of the band map could be saved at the same time, so that they are restored when QLog is restarted. On the other hand, there may be reasons why other settings or no settings at all for displaying the bandmap when starting QLog may make more sense. |
QApplication::desktop is obsoleted and QT6.x does not implement it. This commit uses QGuiApplication::screens
Need to apply only for QT under 6.3. Otherwise, other QT issue is present.
If it was like this, then the QT error occurred because no windows frame was present when switching to the same profile.
System: Kubuntu 24.04.01 / QLog 0.41.1 I have noticed that the dimensions of the individual windows have changed after restarting QLog. The settings for the window widths and heights are apparently not saved. This issue indicates that this is only the case in QLog fullscreen mode. I don't use QLog in fullscreen mode because I still need access to some desktop elements on the side of the QLog window. I have therefore reduced the window size once, to show a maximum effect, and then closed QLog. Here are two pictures. Both layers have been adjusted to 1908 x 1064 px for comparison. After restarting you can see that the window sizes are not the same as before. If I close QLog in the size used here, the overall size of the QLog desktop does not change when I restart it. Only the individual settings of some window widths and heights change. |
OK, thanks for the hint. In ‘Classic’ mode, restoring the set window sizes works. However, the display of ‘TX PWR’ is missing here. In ‘Activity’ mode (here: dl2ki), ‘Save Arrangement’ must always be pressed after setting the window sizes. When restarting, however, other window sizes continue to appear. However, the previously set window sizes appear when I switch the activity from ‘dl2ki’ to ‘classic’ and then back to ‘dl2ki’. |
Hi, I have experimented a little here. The behaviour with the required double switching of the activity can certainly be reproduced here. Is this also the case for you, or could there be a cause outside of QLog? |
Wolfgang, to be honest, I do not really understand your issue. Is the problem that the window size changes between restarts? I tried both full-screen and non-full-screen modes, and if the settings are saved, everything returns to the default size after both restarts and profile switches. Even when switching back to the same profile, everything is set to the correct size. Overall, the issue is that there is a bug in Qt, and QLog implements some workarounds to compensate for it. Maybe there is the issue. The important thing is to press Save Arrangement when you are satisfied with the window layout. I will try to run some additional tests over the weekend. |
Hi Ladislav, I have sent you a demo video by e-mail. Perhaps the behavior of QLog is now a little clearer. |
It seems that the workaround for QTBUG-46620 must be present also for QT 6.8
Qt has an issue when performing saveGeometry in the case of a maximized window. There are many workarounds, but none of them fully resolve the problem. Therefore, this hack is used. If QLog detects a maximized window, it "changes" it as "normal" and then resizes it to its original size. The user should not notice any difference in terms of size, but saveGeometry works more reliably in this "normal" window mode.
Enable the fix only for Linux - Windows OS does not need this.
This is my screen before closing:
Close Qlog and reopen it again, the size of the main window is smaller now, and I have to maximize it
After maximizing, the window sizes are not the same anymore, see dx-cluster and online-map are smaller now.
It would be so nice if Qlog would just remember all sizes! Perhaps not a bug, but a kind request :)
John
The text was updated successfully, but these errors were encountered: