Solved Error when renaming .cpp , .h, and .ui files
-
So I originally had user_createpassword.cpp, user_createpassword.h , and user_createpassword.ui but I changed it to user_password.cpp, user_password.h, and user_password.ui. I believed I had changed everything that needed to be changed but I still get the following errors:
GUI/user_password.cpp
GUI/user_password.cpp: In constructor 'user_Password::user_Password(QWidget*)':
GUI/user_password.cpp:6:16: error: invalid use of incomplete type 'class Ui::user_Password'
ui(new Ui::user_Password)
^
GUI/user_password.cpp:1:0:
GUI/user_password.h:7:7: error: forward declaration of 'class Ui::user_Password'
class user_Password;
^
GUI/user_password.cpp:8:7: error: invalid use of incomplete type 'class Ui::user_Password'
ui->setupUi(this);
^
GUI/user_password.cpp:1:0:
GUI/user_password.h:7:7: error: forward declaration of 'class Ui::user_Password'
class user_Password;
^
GUI/user_password.cpp: In destructor 'virtual user_Password::~user_Password()':
GUI/user_password.cpp:13:12: warning: possible problem detected in invocation of delete operator: [enabled by default]
delete ui;
^
GUI/user_password.cpp:13:12: warning: invalid use of incomplete type 'class Ui::user_Password' [enabled by default]
In file included from GUI/user_password.cpp:1:0:
GUI/user_password.h:7:7: warning: forward declaration of 'class Ui::user_Password' [enabled by default]
class user_Password;
^
GUI/user_password.cpp:13:12: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
delete ui;
^
make: *** [user_password.o] Error 1
11:16:37: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project NODe_GUI (kit: Desktop)
When executing step 'Make'I checked the .h, .cpp, .pro, .ui(Editing Mode) and they are all renamed correctly.
-
Did you change the user_createpassword within the xml code of *.ui file?
Eg: <widget class="QDialog" name="user_password">
-
@Carmoneer yes I did.
-
@Carmoneer I create a brand new file with that name and just copied everything over. Thanks anyways!!!!
-
@marlenet15 Glad you to hear you got it working!