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. Signals & Slots editor not working?
QtWS25 Last Chance

Signals & Slots editor not working?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 2.8k 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.
  • G Offline
    G Offline
    GoDonkeys
    wrote on last edited by
    #1

    I'm using Qt 4.7 with Qt Creator 2.0.1 on Fedora 13 64-bit and am trying to create a GUI as a front end for some testing that I am doing.

    I've been able to create a main window that I can change depending on the test that I'm performing but I've noticed that throughout the Signals and Slots editor when I'm in the design view doesn't show any of the signals/slots for the component that I'm editing. In other words, I've created a QPushButton and (using the context menu) created a slot for when the button is clicked. The code gets created for the slot and works fine but it never shows up in the Signals & Slots Editor in the design view.

    Now I'm having a problem where I created a QSpinBox and a QRadioButton for a new test (along with their slots) but have since decided that I didn't want those items so I deleted them. Now, when I try to build the program I get errors because in the moc_*.cpp file the slots still exist. I manually deleted them and the code compiles but none of my slots work anymore.

    Shouldn't I be seeing signals and slots in the Signals & Slots Editor for all the entities that I have setup a slot for in the designer? Could it be something in my system that is not setup correctly?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      I am not sure, but "Rebuild All" may help in your issue. Did you try that already?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GoDonkeys
        wrote on last edited by
        #3

        I was able to get my code to work after realizing that the slots for the Widgets that I removed were being declared in my .h file which would explain why they were getting re-created in the moc*.cpp file.

        I removed them from my .h file and everything appears to be working correctly, now.

        I still don't see anything in the Signals & Slots Editor for any of my Widgets, but I can at least continue working on my tests.

        Thanks for the quick reply.

        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