Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Error finding /adding a slot - in Qt Designer
QtWS25 Last Chance

Error finding /adding a slot - in Qt Designer

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 3 Posters 2.7k 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on 16 Nov 2020, 15:33 last edited by aha_1980
    #1

    As the title saiz .
    This has been a problem in past (2012) and the attached link does not really provide solution.

    This is a first attempt to work with signal / slot AFTER I reinstalled my Qt Creator .
    Since I am adding a slot in "device.cpp" I do not get why the error is reporting missing header from so any places.

    I assume it is missing from some common place , but I do not get from where.

    Could use some help.
    Thanks.

    https://forum.qt.io/topic/20570/qtcreator-ui-designer-suddenly-fails-to-add-find-slots

    42e17ac6-6235-47f4-b3ac-36edb73265f9-image.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Nov 2020, 18:33 last edited by
      #2

      Hi,

      Did you nuke the build folder ?
      Delete the .pro.user file ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on 17 Nov 2020, 01:52 last edited by
        #3

        Did you nuke the build folder ?

        Not sure what you are asking. I can fully rebuild / compile and run everything, including all "events" in "device" object.
        I have several dialogs under tab and they all complain about same things.
        It has to be something common.

        Delete the .pro.user file ?
        No.

        I have build a simple main window and added button and list and it all works as expected.

        I really cannot figure out what header is missing and why only when I try to add "connect" in Qt Designer.

        I will add another test tab dialog and see if I can identify the missing #inlcude header.l

        J 1 Reply Last reply 17 Nov 2020, 05:26
        0
        • A Anonymous_Banned275
          17 Nov 2020, 01:52

          Did you nuke the build folder ?

          Not sure what you are asking. I can fully rebuild / compile and run everything, including all "events" in "device" object.
          I have several dialogs under tab and they all complain about same things.
          It has to be something common.

          Delete the .pro.user file ?
          No.

          I have build a simple main window and added button and list and it all works as expected.

          I really cannot figure out what header is missing and why only when I try to add "connect" in Qt Designer.

          I will add another test tab dialog and see if I can identify the missing #inlcude header.l

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 17 Nov 2020, 05:26 last edited by
          #4

          @AnneRanch said in Error finding /adding a slot - in Qr Designer:

          Not sure what you are asking

          Delete the build folder. If you don't know where it is you can check in QtCreator: Projects/General/Build Directory

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

          1 Reply Last reply
          1
          • A Offline
            A Offline
            Anonymous_Banned275
            wrote on 17 Nov 2020, 17:31 last edited by
            #5

            Here is something which may lead to solution.

            I have never had a need to look into "projects" form.
            I copy - using "files" to keep track of my development - poor man version control.

            Noticed that the "tab" and "build directory" do not match.

            Not sure what to do about error which is going to be "overwritten" ??

            Also - I do not know wnat "shadow build" does.

            I went to my early version of the project and experienced same issue - missing still unknown header.

            Thanks for all your help, appreciate that very much

            010aa626-bb09-400e-812f-431282438697-image.png

            J 1 Reply Last reply 18 Nov 2020, 07:45
            0
            • A Anonymous_Banned275
              17 Nov 2020, 17:31

              Here is something which may lead to solution.

              I have never had a need to look into "projects" form.
              I copy - using "files" to keep track of my development - poor man version control.

              Noticed that the "tab" and "build directory" do not match.

              Not sure what to do about error which is going to be "overwritten" ??

              Also - I do not know wnat "shadow build" does.

              I went to my early version of the project and experienced same issue - missing still unknown header.

              Thanks for all your help, appreciate that very much

              010aa626-bb09-400e-812f-431282438697-image.png

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 18 Nov 2020, 07:45 last edited by
              #6

              @AnneRanch said in Error finding /adding a slot - in Qr Designer:

              Not sure what to do about error which is going to be "overwritten" ??

              Nothing. Next time you build the content of that folder will be overwritten. This is just a warning telling you that there is already something in that folder.

              "Also - I do not know wnat "shadow build" does" - is explained in the documentation: https://doc.qt.io/qtcreator/creator-glossary.html

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

              1 Reply Last reply
              4
              • A Offline
                A Offline
                Anonymous_Banned275
                wrote on 27 Nov 2020, 16:45 last edited by
                #7

                BUMP

                I am back with same issue - this time only one error.
                To get rid of the original post error I have totally abandoned my original project and started over.
                This time I included only one class from the original code (btscanner) and as expected got the error back.
                ( I'll admit I am still not sure about anything "ui" in QtCreator )

                I really do not understand how to find / identify the missing reference to "ui::DeviceDiscovery" so I can add appropriate header into my code.

                Here is a refresher , just a text of the error.

                The class containing "Ui::DeviceDiscovery" could not be found in
                /media/f/QT/Qt/QT/qtconnectivity/examples/bluetooth/CAT_BT_18112020/device.h.
                Please verify the #include-directives.

                1 Reply Last reply
                0
                • S Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 27 Nov 2020, 19:15 last edited by
                  #8

                  Hi,

                  The complete example (5.15 version) can be found here.

                  Check the .pro file to see if yours is missing anything like the FORMS directive.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  A 1 Reply Last reply 27 Nov 2020, 23:07
                  0
                  • SGaistS SGaist
                    27 Nov 2020, 19:15

                    Hi,

                    The complete example (5.15 version) can be found here.

                    Check the .pro file to see if yours is missing anything like the FORMS directive.

                    A Offline
                    A Offline
                    Anonymous_Banned275
                    wrote on 27 Nov 2020, 23:07 last edited by
                    #9

                    @SGaist
                    My FORMS in .pro seem to work , no problem.

                    I basically have two dialogs - MainWindow and Bluetooth scanner.
                    I can "go to slot ..." and add a slot in MainWIndow and do "connect" , but I get this error doing same in Bluetooth scanner.
                    I did check both headers and see no obvious difference.
                    I am doing both "slot" assignment in QtDesigner , but since it fails for Bluetooth dialog I cannot continue in QtDesigner and do the connect there.

                    I have two options
                    do the Bluetooth "connect" manually, which I am still not comfortable with, or
                    just rebuild the "device class " - an original scanner dialog - and hope it will work.

                    Many thanks for your help.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 29 Nov 2020, 07:33 last edited by
                      #10

                      Which slot are you trying to connect ?

                      Advice: get yourself comfortable with doing things in code code. That's a very good long term investment.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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