Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为小部件的信号添加插槽很容易:右键单击它并选择“转到插槽”。但是如何on_pushButton_clicked从 Qt 设计器中删除为按钮(如 )创建的插槽。
on_pushButton_clicked
<class_name>::on_pushButton_clicked()您必须从头文件中删除声明。
<class_name>::on_pushButton_clicked()
您可以按查看->信号/插槽编辑器,然后将显示一个新窗口,只需按减号按钮删除插槽。