Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved No documents matching "ui_form.h" could be found

    Qt for Python
    5
    11
    2272
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BvdPutten last edited by

      When testing Qt Creator, for the first time, I receive No documents matching "ui_form.h" could be found.
      Rebuilding the project might help. when adding a button to a frame and select GoTo Slot.
      How can I resolve this?

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @BvdPutten last edited by

        @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.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • B
          BvdPutten last edited by

          I am using Qt for Python development. Started my first test as said. Build function from the tollbar is grayed out. Did I misunderstand your question?

          JonB 1 Reply Last reply Reply Quote 0
          • JonB
            JonB @BvdPutten last edited by JonB

            @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" :(

            https://bugreports.qt.io/browse/QTCREATORBUG-9683

            Can you state your version of Creator, and maybe try another version?

            1 Reply Last reply Reply Quote 0
            • B
              BvdPutten last edited by

              I am using Qt Creator 4.15.2.
              This is the first test with Qt. If this 'hello world' test is even not working, I wonder if I should use Qt in the first place..

              1 Reply Last reply Reply Quote 0
              • C
                carlo.valgimigli last edited by

                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

                JonB 1 Reply Last reply Reply Quote 0
                • JonB
                  JonB @carlo.valgimigli last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • C
                    carlo.valgimigli last edited by

                    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

                    Immagine.png

                    ![3_1631087301164_Immagine6.png](Uploading 100%) ![2_1631087301164_Immagine5.png](Uploading 100%) ![1_1631087301164_Immagine3.png](Uploading 100%) ![0_1631087301164_Immagine2.png](Uploading 100%) Immagine2.png Immagine3.png Immagine5.png Immagine6.png

                    JonB J.Hilk 2 Replies Last reply Reply Quote 0
                    • JonB
                      JonB @carlo.valgimigli last edited by

                      @carlo-valgimigli
                      I said to you: do not use Go to slot, that's what is (presumably) causing the error. Write your connect()s in code, don't use the UI to do them. Don't know how to be any clearer than that.

                      1 Reply Last reply Reply Quote 1
                      • J.Hilk
                        J.Hilk Moderators @carlo.valgimigli last edited by

                        @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

                        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

                        Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


                        Q: What's that?
                        A: It's blue light.
                        Q: What does it do?
                        A: It turns blue.

                        1 Reply Last reply Reply Quote 1
                        • C
                          carlo.valgimigli last edited by

                          Thank you very much to all , Jon and Hilk
                          i will follow you
                          now is clear

                          Regards Carlo

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post