Skip to content
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

右侧系统按钮点击事件失效 #130

Open
Feng-xuerui opened this issue Aug 22, 2024 · 2 comments
Open

右侧系统按钮点击事件失效 #130

Feng-xuerui opened this issue Aug 22, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@Feng-xuerui
Copy link

使用QWK::WidgetWindowAgent设置右侧的系统按钮,包括最小化,最大化和关闭三个按钮,这三个按钮的点击事件将失效。

windowAgent->setSystemButton(QWK::WindowAgentBase::Minimize, minButton);
    windowAgent->setSystemButton(QWK::WindowAgentBase::Maximize, maxButton);
    windowAgent->setSystemButton(QWK::WindowAgentBase::Close, closeButton);
@SineStriker
Copy link
Contributor

听不懂你在说什么

@SineStriker SineStriker added the invalid This doesn't seem right label Sep 1, 2024
@Xie-Long-0
Copy link
Contributor

你可能没有手动连接这几个按钮的信号槽,上面几个语句只是实现样式相关的功能,点击操作仍需自己连接信号槽。如

connect(closeButton, &QPushButton::clicked, this, &QWidget::close);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants