[solved] removing a slot generated by qt creator



  • 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


  • Moderators

    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.



  • thanks, fast and easy, worked...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.