c++ - Multiple connected objects in QT -


i have several qt objects notify each other of changes.

connecting them each other without safeguard create infinite loop of signals: object changes , signals objects b , c; each of b , c sends signals , c , b respectively; etc. temporarily disconnecting other objects when receiving signal , reconnecting after updating object kind of barely work, emphasis on "kind of barely", includes occasional crashes due multiple signals coming out of order.

what recommend safe , robust method of syncing multiple qt objects?

you use qobject::blocksignals described here. must remember if use qobject::blocksignals bloack signals until call qobject::blocksignals false parameter.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -