Comments (3)
Hey @LochlanPerry-Scott,
thank you for sharing your findings!
I abandoned the idea of a custom window for my particular application because of this issue and other drawbacks. Even apps like Spotify or Discord seem to struggle with this, although it's better now on my new QHD monitors and maybe they also improved their software.
I'll definitely try out your fix, maybe I can finally switch to a custom window at one point.
from qt-nice-frameless-window.
Howdy @SimonBuxx,
I too have stumbled across this issue.
I'm also using the same Windows Version and Monitor Aspect.
Initially it looks as though removing WS_CAPTION from the function '::SetWindowLong' fixed the original Vertical Bar issue however, it seems to have introduced further issues, as now a new boarder appears when full screened. (Thankfully this does not extend the one monitor).
But still not expected behaviour.
After browsing Window Styles in Winuser.h it seems that WS_CAPTION may be necessary.
(According to the Flag WS_OVERLAPPEDWINDOW, that is basically used when initializing the Resizable window)
So after another hour of testing a separate route I stumbled to an answer/workaround.
Inside of the CFramelessWindow, 'setResizable(bool)' function there is a bit of code at the end that sets a 'shadow margin'.
It seems that changing this value from:
const MARGINS shadow = { 1, 1, 1, 1 };
To:
const MARGINS shadow = { 10, 10, 10, 10 };
Works!
It looks as though there might be, at least, an 8px border around the Window, so setting the margin to anything above 8 seems to fix this issue, in my case anyway.
@Bringer-of-Light, It might be worth investigating into why this happens as it is bizarre behaviour.
I hope this can at least help with a work around until this can be sorted.
from qt-nice-frameless-window.
Thanks for the patch, helps me a lot.
from qt-nice-frameless-window.
Related Issues (20)
- MacOS如何将窗口设置成模态窗口?
- Windows下 设置setAttribute(Qt::WA_TranslucentBackground, true); 报错UpdateLayeredWindowIndirect failed HOT 1
- MAC: titlebar show again when I put QTabWidget in widget.
- system min/max/close button show on Windows 7 when click custom title bar HOT 1
- 可以在qml里面使用吗
- 父窗口不能接收到WM_GETMINMAXINFO、WM_NCCALCSIZE、WM_NCHITTEST HOT 1
- Setting fixed size on MainWindow makes the window undraggable. macOS. Qt 5.14.2 HOT 1
- Can't show any view in macOS 10.15 HOT 2
- 如何在win10下将窗口裁剪为圆角
- Macos title遗留白边
- menuBar 使用疑问 HOT 1
- Can't move window to second screen HOT 9
- 双屏情况下,从这个屏幕移动到另一个屏幕上,会出现大黑边 HOT 3
- problem in window with Round corners
- win+down无法最小化
- win7下会依旧会显示系统按钮及边框
- Err msg: QMainWindow::getContentsMargins(left,top,right,bottom); HOT 1
- undefined reference to `DwmExtendFrameIntoClientArea' HOT 2
- 这个方式Win10下面窗口能设置圆角吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qt-nice-frameless-window.