[Qt-interest] block signals only in current class

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Tue Aug 11 11:04:03 CEST 2009


You're blocking the signal...Eventhough you're changing the velocity but no
signal will be emitted there.Thanks

On Tue, Aug 11, 2009 at 2:03 PM, Matthias Pospiech <matthias.pospiech at gmx.de
> wrote:

> I have a class (RotationStage) that has a variable 'velocity'. The class
> is a Singleton.
>
> This velocity can be changed in different classes and is displayed in
> different dialogs.
> If the velocity is changed with
> RotationStage->setVelocity(velocity)
> then RotationStage emits 'velocity changed', so that all dialogs can
> update their velocity displays.
>
> However, I want to avoid that the signal of RotationStage changes the
> QDoubleSpinBox, that originaly
> changed the velocity value. But if I would block the Signals from
> RotationStage "RotationStage->blockSignals(true);",
> that would stop every dialog from getting this signal which is not what
> I want.
>
> Or do this signals apply only to my class despite that RotationStage is
> a Singleton?
>
> Matthias
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090811/412a06f0/attachment.html 


More information about the Qt-interest-old mailing list