-
Notifications
You must be signed in to change notification settings - Fork 434
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
Double title bar in macOS #2968
Comments
Unfortunately, I couldn't reproduce the problem on macOS 10.15 |
I got a colleague who has 10.15 to test, and they don't see the double title bar either. Therefore this appears to affect only 10.14. I don't know anything about qt. However I copied this tutorial, disabled the
So I do get the double title bar even with this simple test. Regarding the warning about adding a layout to a window which already has a layout, by adding print statements I can see that it occurs when this is executed:
I also found this: https://forum.qt.io/topic/53814/qlayout-attempting-to-add-qlayout-to-mainwindow-which-already-has-a-layout-solved/4
|
Actually, if I reduce the code to just
then I still get the doubled title. And reduced further to:
then I get an double empty title: |
Thanks for the research :) I will test on macOS 10.14 and see if I can find a workaround. |
Hah, I found this and applied it:
The hello world program now renders correctly for me! Emboldened by the success of setting random options, I then tried
However, that didn't fix GNS3 :-( |
I was suspecting this option could work :) Changing the .ui file has no effect because it needs to be compiled to a Python file. Try to patch this file instead: https://github.com/GNS3/gns3-gui/blob/master/gns3/ui/main_window_ui.py |
There's only the compiled one:
But I copied the
and it works, yay :-) EDIT: Perhaps this should go upstream as a Qt issue. But as I don't have a Qt dev environment, and indeed don't even know what version of Qt this is, I would leave this to you. |
Great! Thanks for helping to fix this 👍 |
I have added |
Seems to be ok with the latest nightly build: https://sourceforge.net/projects/gns-3/files/Nightly%20Builds/2020-04-30/2.2/ |
Describe the bug
Very minor issue, but in macOS the title bar is doubled, losing a small bit of vertical screen estate, and looking a bit strange since the project title is displayed twice too.
GNS3 version and operating system
To Reproduce
Screenshots or videos
Additional context
The project shown above has a scene width of 1400px and scene height of 2000px.
The text was updated successfully, but these errors were encountered: