Can no longer build due to no matching function.
-
Hi and welcome to devnet,
Did you delete the ui file + the corresponding header and source files ? Did you change any name in between ?
-
Then, since you're in a hurry, the quick way: move these files out of the source tree, recreate your widget, copy back your custom code if you had any
-
Then, since you're in a hurry, the quick way: move these files out of the source tree, recreate your widget, copy back your custom code if you had any
-
You can copy it, just check that all names are correct
-
Don't overwrite the new files with the content of the old one, just cherry-pick the modifications you made e.g. slot added etc.
-
Don't overwrite the new files with the content of the old one, just cherry-pick the modifications you made e.g. slot added etc.
-
So, recreating your widget from scratch in a new project and just copying the slot code gives you the same error ?
-
So, recreating your widget from scratch in a new project and just copying the slot code gives you the same error ?
-
Did you check that all names were matching ? Ui widget name vs C++ widget name ?
-
@SGaist Right, sorry to be causing so many problems, but thank you for the help! Everything is working now, I missed some of the includes, however I can't use .setModal(true); on a new window opening because it's saying the class has no member called setModal
behindlogin behindlogin; behindlogin.setModal(true); behindlogin.exec(); connClose();
-
You're welcome !
setModal and exec are methods from QDialog. From what I understood you have a QMainWindow, no ?
-
You're welcome !
setModal and exec are methods from QDialog. From what I understood you have a QMainWindow, no ?
-
So problem solved ? :)
-
If you have something like:
{ behindlogin behindlogin; behindlogin.show(); connClose(); } <- behindlogin is destroyed here
-
If you have something like:
{ behindlogin behindlogin; behindlogin.show(); connClose(); } <- behindlogin is destroyed here
-
Is behindlogin a member variable of a class ?