No documents matching "ui_form.h" could be found
-
@BvdPutten said in No documents matching "ui_form.h" could be found:
How can I resolve this?
Did you build your project like the error message suggests? ui_form.h is generated when the project is built.
-
@BvdPutten said in No documents matching "ui_form.h" could be found:
No documents matching "ui_form.h" could be found.
Your question is posed in https://stackoverflow.com/questions/66369932/error-in-qtcreator-4-14-1-python-no-documents-matching-ui-form-h-could-be-f. You may not like the "answer" :(
Can you state your version of Creator, and maybe try another version?
-
I had the same problem , i am a beginner in python with Qt .
I got :
No documents matching "ui_form.h" could be found.
Rebuilding the project might help.But i am not able to build the project , the menu is disabled
what can i do ?
Thank you
-
@carlo-valgimigli
I think you are using Designer's Go to slot... to attach slots to signals, as shown in the stackoverflow post I linked? In which case, don't! Try removing any attempts you have made to use that feature and do it in Python code only. -
Hi JonB, thank you for your answer, Yes i am using the menu Go To slot... as shown in the stack overflow.
What do you mean with : "Try removing any attempts you have made to use that feature and do it in Python code only"
i just create a simple and empty project in Qt Creator, selecting : Qt for Python - Window (UI file)
and then :
double click on form.ui , and then i pasted a button on the main form, then right mouse click by selecting Go To Slot ...
choosing an event just clicked().....
but i received the messagebox :
No documents matching "ui_form.h" could be found.
Rebuilding the project might help.and there is no possibility to Build the Project since the menu is disabled, see the pictures
Thank you very much for your answer , i am just a beginner on Qt and Python
Regards Carlo
![3_1631087301164_Immagine6.png](Uploading 100%) ![2_1631087301164_Immagine5.png](Uploading 100%) ![1_1631087301164_Immagine3.png](Uploading 100%) ![0_1631087301164_Immagine2.png](Uploading 100%)
-
@carlo-valgimigli
I said to you: do not use Go to slot, that's what is (presumably) causing the error. Write yourconnect()
s in code, don't use the UI to do them. Don't know how to be any clearer than that. -
@carlo-valgimigli said in No documents matching "ui_form.h" could be found:
and there is no possibility to Build the Project since the menu is disabled, see the pictures
one of the "benefits" of a scripting language, you can't build it, you can only run it!
double click on form.ui , and then i pasted a button on the main form, then right mouse click by selecting Go To Slot ...
like stated multiple times, don't use that option, thats only available for c++ version of Qt
youse the Python specific connect calls
https://doc.qt.io/qtforpython/overviews/signalsandslots.html -
Thank you very much to all , Jon and Hilk
i will follow you
now is clearRegards Carlo