Qt Creator 中的自动完成功能不起作用

发布于 2024-11-25 03:33:32 字数 122 浏览 2 评论 0原文

我安装的 Qt Creator 中的自动完成功能不再起作用。我将“激活完成”设置为“始终”,但它不起作用,即使我按 Control + Space。

本来还好好的,不知道为什么突然就不动了。有谁知道可能是什么原因?

Autocompletion in my installation of Qt Creator is not longer working. I have "Activate Completion" set to "Always" however it doesn't work, even when I press Control + Space.

It used to work fine though, so I don't know why it suddenly stopped. Does anybody know what could be the reason?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绾颜 2024-12-02 03:33:32

好的,我找到了问题所在。这是因为我开始使用预编译头,这意味着许多类现在位于 stable.h 中,但编辑器显然找不到。我通过在所有文件中添加 #include "stable.h" 解决了这个问题,就像在 VC++ 中一样。

Ok I found what the issue was. This is because I started using precompiled headers which means many classes are now in stable.h and apparently not found by the editor. I fixed the issue by adding #include "stable.h" in all the files, like in VC++.

万水千山粽是情ミ 2024-12-02 03:33:32

也许 .cpp 和 .h 文件没有正确添加到 .pro 文件的命令 SOURCES 和 HEADERS 中,并且列表需要通过两个选项卡向左对齐。

Maybe .cpp and .h files are not added properly in the command SOURCES and HEADERS of .pro file and the lists need to be aligned to the left with two tabs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文