By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,171 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,171 IT Pros & Developers. It's quick & easy.

Doubt regarding QT

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.