We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mac下有QOpenGLWidget的情况下把程序拖到另一个屏幕程序会出现4分之三的黑屏
The text was updated successfully, but these errors were encountered:
NSWindowStyleMaskFullSizeContentView 去掉这个style就不会出现这问题
Sorry, something went wrong.
https://forum.qt.io/topic/85989/how-to-use-qwebengineview-in-nswindowstylemaskfullsizecontentview-style-window-in-mac-os 我Google了下发现有个人碰到相同的问题
解决这问题了。在窗口移动的事件里面加下面代码 ` void CFramelessWindow::moveEvent(QMoveEvent *event) {
NSView *view = (NSView *)this->winId(); if (view.layer == nil) return QWidget::moveEvent(event); QDesktopWidget *desktop = QApplication::desktop(); int curMonitor = desktop->screenNumber(this); CGFloat ratio = (CGFloat)QApplication::desktop()->screen(curMonitor)->devicePixelRatio(); [view.layer setContentsScale: ratio];
} `
No branches or pull requests
Mac下有QOpenGLWidget的情况下把程序拖到另一个屏幕程序会出现4分之三的黑屏
The text was updated successfully, but these errors were encountered: