Jorgen-VikingGod / Qt-Frameless-Window-DarkStyle

simple MainWindow class implementation with frameless window and custom dark style. It adds also support for titlebar and buttons (minimize, maximize, close)
1.14k stars 272 forks source link

Cannot fill the screen in Qt5.4(MSVC2013) when the window is maximized #19

Closed ysx1993 closed 6 years ago

ysx1993 commented 6 years ago

I have fixed this bug by call setMargin(15) in on_restoreButton_clicked function and setMargin(0) in on_maximizeButton_clicked function.

.

Jorgen-VikingGod commented 6 years ago

this is really strange, because I do this already in FramelessWindow::styleWindow

ysx1993 commented 6 years ago

I felt strange at the time, but when I don't add the setMargin function, the maximized window will have a 15px margin (if it is out of focus, it will fill the screen again)

ysx1993 commented 6 years ago

Bug... bug

ysx1993 commented 6 years ago

Solution... solve

Jorgen-VikingGod commented 6 years ago

can you push a pull request with your changes?

ysx1993 commented 6 years ago

Hi Jorgen! I have pushed my pull request to you, you can check it!