首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
QMessageBox 的图标自动变成程序的图标
QMessageBox 的图标自动变成程序的图标
it
2023-12-30
65
在设置了程序图标后弹出的对话框的图标没有改变:
QMessageBox message(QMessageBox::Warning, tr("Warning"), tr("Warning"), QMessageBox::Yes | QMessageBox::No, NULL);
需要设置父窗口,即把NULL改成父窗口的指针,这样就可以跟随父窗口的图标了。
转载请注明原文地址: https://lol.8miu.com/read-12802.html
最新回复
(
0
)