c++ - Qt Signal connected Slots only triggering on breaklines or a "Release" build -


There are specific objects within my application that are tied together with signals and slots. It seems that lately these slots are not reliable when they are tied to signals which are emitted. When I create my project in "release" mode, these objects connect properly and actually work fine, but I noticed that if I create in "debug" mode, then the slots do not As long as I did not let them go with the breakpoint.

In addition, if I run the execution of my code in step with the debugger or set a breakpoint within one of these slots, those slots are called.

The method in which I am adding these "fixed" objects:

  Wind window :: Dynamic Connect (Units * Sender Name, Constest Name and Constellation, Organizations * ReceiverNames, Constest Strings and SlotName) {QMetaMethod Sign = SendName-> Meta object () - & gt; Method (SenderName-> Meta Object () -> Indexing (QMetaObject :: Generalized Signature (qPrintable (signalName))); QMetaMethod slot = receiver name- & gt; Meta object () - & gt; Method (& gt; meta object () - & gt; index offslot (quettaababase :: generalized signature (qPrintable (slotname)); QObject :: connect (SENDERNAME, signal, receiverName, slot);}  

I am not getting any error, do anyone have any ideas? The only reason this is an issue is because I do not have to flip it between 2 times.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -