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'?