wangwenx190 / framelesshelper

Project moved to: https://github.com/stdware/qwindowkit Cross-platform window customization framework for Qt Widgets and Qt Quick. Supports Windows, Linux and macOS.
MIT License
846 stars 202 forks source link

closeEvent事件,对QCloseEvent事件进行ignore后,原来无边框的窗体会出现边框 #327

Closed czyt1988 closed 11 months ago

czyt1988 commented 11 months ago

closeEvent事件,对QCloseEvent事件进行ignore后,原来无边框的窗体会出现边框

void MainWindow::closeEvent(QCloseEvent* e)
{
    auto res = QMessageBox::question(this, tr("question"), tr("Confirm whether to exit"));
    if (res == QMessageBox::Yes) {
        e->accept();
    } else {
        e->ignore();
    }
}

此问题是对ignore后出现的

正常状态: image

在closeEvent进行ignore后,边框出现了,且原来可移动的区域失效

image

wangwenx190 commented 11 months ago

前几周才改了个相关问题。最新代码还能复现吗

czyt1988 commented 11 months ago

经验证最新版已经修复此问题