admin管理员组文章数量:1391943
I have a qt project, and every time it is rebuilt, it reports an error:
(Unknown type name 'controller'; did you mean 'Controller'?) in ui_mainwindow.h.
class Ui_MainWindow
{
public:
controller *widget_3;
};
Controller is a QWidget, and I have changed its objectName to Controller in the property editor of Qt Designer.
In controller.h, it's also capitalized.
namespace Ui {
class Controller;
}
class Controller : public QWidget
{
Q_OBJECT
public:
explicit Controller(QWidget *parent = nullptr);
~Controller();
private:
Ui::Controller *ui;
};
Every time I rebuild the project, I have to change it manually. I would like to ask on what basis does Qt Creator generate the type name 'controller'?
本文标签: When Qt Creator builds a projectuimainwindowh always reports an type name errorStack Overflow
版权声明:本文标题:When Qt Creator builds a project, ui_mainwindow.h always reports an type name error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744704173a2620739.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论