重写QDialog::showEvent 否则QDialog弹出时将只会显示在屏幕中间,而不是跟随其父窗口。附QDialog::showEvent源码。重写该函数后,需要加上。 qt 2024-09-01 102 点赞 1 评论 154 浏览