tags:

views:

125

answers:

1

I found myself in the need of having to call a slot directly. I think it's perfectly fine doing it as long as it makes sense in your design. What do you think?

Thanks

+16  A: 

Yes.. Slots are just normal functions and you can call them directly..

From docs,

A slot is called when a signal connected to it is emitted. Slots are normal C++ functions and can be called normally; their only special feature is that signals can be connected to them.

liaK
That's why I like good documentation : explicit and simple.
Klaim
I know they can be called normally. I read the documentation as well. But the question is more a design than a C++ question.
Daniel