我在QToolBar中添加了QAction作为带图标的快捷方式,当点击图标时(QAction发出信号触发()),会弹出一个对话框 . 奇怪的是当我关闭该对话框时,QToolBar上的图标和Qmenu的QAction消失了 . 有没有人遇到过这种情况?
Before clicking the first icon

After closing the QDialog triggered by the action of the first icon

Finally I find why.I delete a non-NULL pointer in the dialog!