[Qt-interest] Synchronous signals, is that possible?
Tom Browder
tom.browder at gmail.com
Sun Feb 15 14:54:21 CET 2009
On Sun, Feb 15, 2009 at 7:28 AM, Andrea Franceschini
<therealmorpheu5 at gmail.com> wrote:
...
> I'm facing a little dilemma about elegance and pointers. I have a
> class which at some time takes a pointer to an object. I can obviously
> take that pointer and do the dirty work inside this class but instead
> I decided to make a proxy/adapter layer that takes those pointers and
> emits them as signals carrying them as parameters, to which the rest
> of my application connects.
...
> provided by signals and slots and, unless there's a way to make them
> work in a synchronous fashion, I'll have to directly pass the pointers
> to my application, and that's frankly quite ugly.
>
> Ideas?
How about using some kind of shared pointer?
-Tom
More information about the Qt-interest-old
mailing list