Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
ui_mainwindow.h does not update when adding something to the MainWindow
HenkCoder last edited by HenkCoder
Hello, I'm new to Qt and I wanted to try to build something on my own but i noticed that whenever I add something to mainwindow.ui, the file ui_mainwindow.h does not update so when I try to refer to it (ui->label1) it says "No member named 'label1' in Ui::MainWindow.
(It is named "splashscreen" because I'm trying to make one for an app)
How do I fix this?
As I said at the beginning, I'm new and I don't know much about it.
Pl45m4 last edited by Pl45m4
Build / Rebuild and
qmakeafter you modify your
*.uifiles. Then you can access your new stuff.
QMake is not even necessary but after a rebuild and qmake, everything should be up to date and your QLabel should be accessible from your code.
Btw: Don't edit the ui_xxx.h file, changes will get overwritten by
HenkCoder last edited by
Thank you very much man, I was looking for a solution for the past two days.