Qt Forum

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

    Qt Creator 2.8.1, how to use Designer to create new Signal/Slot

    Tools
    1
    4
    1985
    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.
    • Q
      qqba last edited by

      Hi, everyone!

      When I connect two widgets in Design mode, it popup a "Configure Connection" dialog and list predefined signals and slots. The "Edit" button is disabled.
      Meanwhile, the "Signals & Slots Editor" can also add connections, but it still can't create custom signal/slot.

      How can I add a new function to be signal or slot?

      I found qt4 designer can just create custom signal/slot, which from menu edit->slots. Here is the "link":http://www.cs.usfca.edu/~afedosov/qttut/

      1 Reply Last reply Reply Quote 0
      • Q
        qqba last edited by

        I know, some widgets just can't add custom slots/signals.
        But QDialog can, and the "Edit" button is enabled.

        Thank you all! Hope this post will help other people who is new to qt.

        1 Reply Last reply Reply Quote 0
        • Q
          qqba last edited by

          Ok. There is still problem.

          I've just add a new slot of QDialog use "Edit" in “Configure Connection” dialog. But I can't go to this slot, because there are only predefined, which means I can't implement the slot. Anyway?

          1 Reply Last reply Reply Quote 0
          • Q
            qqba last edited by

            Ok. I know. In Qt Creator, the build will call "uic" as default to generate header file, which usually stand in diretory "build-xxx-Debug" according to the platform.
            Thank god!
            I found it with much time waste.

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