In Qt (4.6), is it ok to call slots directly?

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?



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.

Need Your Help

Has "In class member initialization" feature made into C++11?

c++ c++11 in-class-initialization

In class initialization feature, which allows to initialize normal members inside the class itself,

How to setup Authorization Hudson /Jenkins to clone your mercurial repository

configuration mercurial hudson jenkins

After installing and playing around with mercurial , I am trying to get Hudson to clone the repository so it can build my project.