Error When executing step "qmake"
-
Delete the .pro.user file as well as the build directory and reconfigure your project from scratch.
The automatically generated build path is invalid as it contains ":" which if memory serves well is not allowed in file path.
-
This post is deleted!
-
This post is deleted!
-
That works. Thank you very much.
Your answer was very helpful and I' ve learned something I didn't Know.One more question, please.
In my project, a text editor is included. In this editor, I included, among other tools, a button for font editing. A day after, I deleted this button, as well as the function, connected with it and the same function from the header file. I cleaned the project and I rebuilt it.
In the .moc file, the button still seems to be in the project.
What else is to be deleted?
![0_1641419947451_Image5.jpg](Uploading 100%) -
Are you using the auto connect feature ?
-
I use the "go to slot" command from the right click menu.
May be is better to write more code lines?
For example (in an other project of mine):
"QObject::connect(ui->changeIt, SIGNAL(clicked()), this, SLOT(setText()));
//changeIt: the name of a button
// setText: the function I call.Thanks SGaist...
-
Do you have any slot named like
on_<object name>_<signal name>
? -
The part of code in the moc file is:
Case 0: t→onSavebtn_clicked(); break;
Case 1: t→newValues_clicked(); break;
Case 2: t→onExitRbtn_clicked(); break;
Case 0: t→onFontbtn_clicked(); break;
//the last button is the one I deleted -
I read in a qt tutorial that it is better for programmers to avoid "Go to slot..." command.
Do you agree with this advice?/being a new user I have to wait 600 seconds until I upload a new post.
So our dialogue should be interrupted/ -
It's known to be a bit fragile. Being explicit in your code will be better in the long run especially with regard to maintainability.