473,385 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1273
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: praba kar | last post by:
Dear All, I am new to Python. I am in need of some sorting functions (eg) numerical sorting functions and alphapetical sorting functions. I have searched through net But I cannot find any...
6
by: praba kar | last post by:
Dear All, I have doubt regarding sorting. I have a list that list have another list (eg) list = ,,] I want to sort only numeric value having array field. How I need to do for that.
1
by: praba kar | last post by:
Dear all, I have doubt regarding python Compilation. I want to know whether Python is compiler language or interpreted language. If Python is interpreter language why compilation is there. ...
1
by: Babu | last post by:
Hi, I am a Perl newbie and have a doubt on Perl exception handling. My understanding regarding exception handling is execute a piece of code, if any exception occurs, handle the exception and...
3
by: darkstorm | last post by:
I have a doubt regarding inheritance involving templates Consider this: ///////////////////////////////////// template<typename T> class A { private: T m_a;
5
by: meenu_susi | last post by:
doubt regarding select box....urgent in the below code i am getting data from database..according to the condition.. i want the available data in database to get displayed in selectbox.. for...
3
by: meenu_susi | last post by:
doubt regarding shopping cart...in asp i have a page where user purchase the product.. here i have the product as tshirt.. and for ex..i have shirt sizes as follows s m l xl xxl and...
122
by: ivan | last post by:
hi all, if I have: if(A && B || C) which operation gets executed first? If I remeber well should be &&, am I correct? thanks
4
by: SandyIsCool | last post by:
Hi, I am newbie to asp.net. I have small doubt regarding page life cycle. MSDN documentaion says that init event does blhah, blah load event does blah blah etc. But Id ont see any init or load...
8
by: somenath | last post by:
Hi All, I have a doubt regarding the pointer assignment . Please have a look at the following program . #include<stdio.h> #include<stdlib.h> #define NAMESIZE 10 #define SAFE_FREE(t) if(t)\...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.