[Interest] synchronize multiple graphicsviews

Mojmír Svoboda Mojmir.Svoboda at warhorsestudios.cz
Mon Sep 9 09:52:39 CEST 2013


Good morning,

I have something like profiler and each thread is contained in its own
graphicsview. On the x axis is time of course and i want the setpos in
one thread to be propagated in the others.

So i hooked the horizontalScrollBar::valueChanged and i am trying
to dispatch the signal to other views.
The thing is (as you probably guess already) that these fires the
signal too, so i end up in a loop.

But when i block the signals, the view's position does not get
updated. I tried (i think) to call every setscenerect, update,
viewport->update etc but don't succeeded to get the view visualy
updated.

What is the best way to do this?

Many thanks,
Mojmir


More information about the Interest mailing list