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. Qt Creator 2.8.1, how to use Designer to create new Signal/Slot
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 1 Posters 2.2k 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.
  • Q Offline
    Q Offline
    qqba
    wrote on last edited by
    #1

    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
    0
    • Q Offline
      Q Offline
      qqba
      wrote on last edited by
      #2

      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
      0
      • Q Offline
        Q Offline
        qqba
        wrote on last edited by
        #3

        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
        0
        • Q Offline
          Q Offline
          qqba
          wrote on last edited by
          #4

          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
          0

          • Login

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