Home > other >  Qt sent a signal, channel function to receive many times
Qt sent a signal, channel function to receive many times

Time:12-09

Qt sends a signal, channel function to receive and accept the number of times will accumulate many times, first receive a second receive twice, accumulate in turn. After the debug () debugging did just send a signal. Beg god for help, the Internet also have the same problem, but there is no a definite answer!

CodePudding user response:

This, is almost sure you connect many times,

CodePudding user response:

Dbzhang800 reference 1 floor in 2012-03-31 published ": this is almost certainly your connect many times,  + 1 to be sure, slot is the relevant code of the connect,

CodePudding user response:

I've met, may be you don't have a release a pointer, there are multiple instances at the same time!

CodePudding user response:

The connect (this, SIGNAL (sendStr (QString)), & amp; Form, SLOT (getStr (QString)), Qt: : UniqueConnection);
  • Related