Krish
29th February 2008, 14:34
Hello! Everybody,
I am planning to use Qt3.3.3 for a GUI design. I have read the Signal & Slot doc related to Qt3.3. I got one doubt in connecting the signals as shown: -
Foo a, b;
connect(&a, SIGNAL(valueChanged(int)), &b, SLOT(setValue(int)));
They have used "&a" and "&b" for connecting them. What is its significant i mean can't i use just"a" and "b" in the same way. If No why? or Yes why?
Thanks in advance.:)
I am planning to use Qt3.3.3 for a GUI design. I have read the Signal & Slot doc related to Qt3.3. I got one doubt in connecting the signals as shown: -
Foo a, b;
connect(&a, SIGNAL(valueChanged(int)), &b, SLOT(setValue(int)));
They have used "&a" and "&b" for connecting them. What is its significant i mean can't i use just"a" and "b" in the same way. If No why? or Yes why?
Thanks in advance.:)