How to remove slot, created in Designer mode?

只谈情不闲聊 提交于 2019-12-05 11:56:12

问题


I've created the button cancelButton. Then I've created function-slot on_cancelButton_clicked() for it using context menu item Go to slot. But, after a while, I've deleted this button (it wasn't longer needed), and tried to delete that function, but compiler gives error undefined reference to <class_name>::on_cancelButton_clicked().

I've made cleanup of build folder (and removed it), checked for some lines in ui file that can point to this function, but i didn't found anything.


回答1:


Solution is simple. I didn't remove the declaration of <class_name>::on_cancelButton_clicked() from header file. (by Ammar, posted here)



来源:https://stackoverflow.com/questions/11082348/how-to-remove-slot-created-in-designer-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!