Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. No documents matching "ui_form.h" could be found

No documents matching "ui_form.h" could be found

Scheduled Pinned Locked Moved Unsolved Qt for Python
11 Posts 5 Posters 5.9k Views
  • 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 Offline
    B Offline
    BvdPutten
    wrote on last edited by
    #1

    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?

    jsulmJ 1 Reply Last reply
    0
    • B BvdPutten

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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
      0
      • B Offline
        B Offline
        BvdPutten
        wrote on last edited by
        #3

        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?

        JonBJ 1 Reply Last reply
        0
        • B BvdPutten

          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?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @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
          0
          • B Offline
            B Offline
            BvdPutten
            wrote on last edited by
            #5

            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
            0
            • C Offline
              C Offline
              carlo.valgimigli
              wrote on last edited by
              #6

              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

              JonBJ 1 Reply Last reply
              0
              • C carlo.valgimigli

                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

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by
                #7

                @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
                0
                • C Offline
                  C Offline
                  carlo.valgimigli
                  wrote on last edited by
                  #8

                  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

                  JonBJ J.HilkJ 2 Replies Last reply
                  0
                  • C carlo.valgimigli

                    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

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote on last edited by
                    #9

                    @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
                    1
                    • C carlo.valgimigli

                      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

                      J.HilkJ Offline
                      J.HilkJ Offline
                      J.Hilk
                      Moderators
                      wrote on last edited by
                      #10

                      @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


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

                      1 Reply Last reply
                      1
                      • C Offline
                        C Offline
                        carlo.valgimigli
                        wrote on last edited by
                        #11

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

                        Regards Carlo

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved