Qt Creator“覆盖方法”捷径?
Qt Creator 是否有像 eclipse 一样的“覆盖方法”快捷方式?
对于那些不了解 Eclipse 的人,有一个显示对话框的上下文菜单“Source > Override Method”。检查您想要覆盖的方法,它将为这些方法生成存根。
Does Qt Creator have a "override method" shortcut like eclipse?
For those who don't know eclipse, there is a context menu "Source > Override Method" that show a dialog. Check the method you want to override, and it will generate stubs for those method.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
顺便说一句,我使用的是 Qt Creator 3.4.1。
btw, I'm using Qt Creator 3.4.1.
QtCreator 下可用的最接近的是
Add Definition to *cpp
。假设您在头文件中有一个void PaintEvent(QPaintEvent* e)
声明,那么如果您选择该函数并在Refactor
下弹出上下文菜单,就会有一个选项将定义添加到cpp
The closest that is available under QtCreator is
Add Definition to *cpp
. So say you have a declaration ofvoid paintEvent(QPaintEvent* e)
in the header file, than if you select the function and pop the context menu underRefactor
there is an optionAdd Definition to cpp