Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] removing a slot generated by qt creator
QtWS25 Last Chance

[solved] removing a slot generated by qt creator

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 6.6k 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.
  • D Offline
    D Offline
    dualfaces
    wrote on last edited by
    #1

    Hi,

    I'm using QT creator 2.8.1 and have the following problem: Using the designer i created a GUI consisting of several buttons. The necessary slots were generated by right-clicking the button and then show slots.
    Now, i want to remove some of these slots since i don't need them anymore. But how to achieve this? Removing them from the source code yields undefined references (naturally), afterwards removing them from the moc files solves the problem as long as you don't rebuild the project.
    But thats not nice. So where are these slots stored so that they can be removed from the project? The Signals and Slots view in the designer is empty.

    Thanks.

    regards

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Remove those slots from the header file of your class and from the source file. Then clean your project, run qmake and rebuild it. Should work.

      (Z(:^

      1 Reply Last reply
      2
      • D Offline
        D Offline
        dualfaces
        wrote on last edited by
        #3

        thanks, fast and easy, worked...

        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