Search code examples
c++qtsignals-slots

Qt c++ signal slots - necessary to clear signals?


sorry, I can`t be mor speciic, because I am stuck in a jumble of classes, and several signal/slots.

In my project I use several signal-slots. Now I have the impression that depending on how often I start a routine that emits a signal my slot is run several times.

For the first rum my Slot is run once; In the second run it is run twice.... When I close my program I start again with running it once.

Is there a need to somehow finish/end/delete a signal after it is sent ?

Thank you


Solution

  • Take a look to the Qt::UniqueConnection flag.