[Qt-interest] need help with qobject connect
Andreas Pakulat
apaku at gmx.de
Sat Aug 8 08:46:08 CEST 2009
On 07.08.09 20:54:20, Ivan Lyapunov wrote:
> It's not the only one purpuse to indicate something to signal emitter with
> non-const reference.
> I want to change my struct during the emission, since the emission queue is
> serialized by Qt and it's not a multithread.
> So i can change any parameter in struct in first SLOT to the end of
> connectors in a connection order, like in a filter.
I hope you are aware that this can break very easily. The order in which
slots are called is undefined, so even if your app works right now with
your Qt version, it could break with the Qt someone else uses or if you
upgrade your version. So you should never rely on a specific order of Qt
calling the slots.
> But unfortunately i should rewrite my code to void* calls because of strange
> architect prohibition.
You can just as well do a myStruct* instead of void*.
Andreas
--
You'll wish that you had done some of the hard things when they were easier
to do.
More information about the Qt-interest-old
mailing list