468,456 Members | 1,647 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

Doubt regarding QT

Can we use the slots in QCopchannel as ordinary member functions ??

that means in QT we have to connect the SLOTs to SIGNALS and that will
be invoked if the signal is happend

is it possible for me to call a slot from any other member function of
the same class just like ordinary member functions...??

Thanks.

Jul 10 '06 #1
2 1057
edu.mvk wrote:
Can we use the slots in QCopchannel as ordinary member functions ??

that means in QT we have to connect the SLOTs to SIGNALS and that will
be invoked if the signal is happend

is it possible for me to call a slot from any other member function of
the same class just like ordinary member functions...??
I have no idea about QT, and in fact, it is off-topic here. If you can
reformulate your question in terms of the standard C++ language (the
topic of this newsgroup), we would be happy to take a stab at it.
Otherwise, you'll want to ask in a more appropriate group. See this FAQ
for what is on-topic here and for a list of some other groups:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Jul 10 '06 #2
Hello,

edu.mvk wrote:
Can we use the slots in QCopchannel as ordinary member functions ??

that means in QT we have to connect the SLOTs to SIGNALS and that will
be invoked if the signal is happend

is it possible for me to call a slot from any other member function of
the same class just like ordinary member functions...??
Yes you can. Qt just adds some stuff through its precompiler "moc", to
make the signal-slot-connections possible and to implement the signals
as ordinary member functions and leaves the slots as ordinary member
functions. Look at the generated code and at the user code after C
preprocessing. This should be valid C++ only.

Bernd Strieder

Jul 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by praba kar | last post: by
6 posts views Thread by praba kar | last post: by
1 post views Thread by praba kar | last post: by
1 post views Thread by Babu | last post: by
3 posts views Thread by darkstorm | last post: by
122 posts views Thread by ivan | last post: by
4 posts views Thread by SandyIsCool | last post: by
8 posts views Thread by somenath | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.