Re: inherit signal and slot
Quote:
If a class specialize a base call and want to access the base classes signal through connection(...), is that valid in Qt?
A sub class will inherit the base class signals/slots if they are not private, thus they for all purposes treated as its own signals/slots, just like other members.
C++ rules apply normally.
Re: inherit signal and slot
SLOTs can be virtual too, its pretty cool ;)
Re: inherit signal and slot
This is one of the things which I like the about Qt C++ (may be C++ actually), either it be signals and slots both of them are normal functions at heart, and allow to be used as virtual functions, overloaded functions, overriding functions, const functions, and all-in-all they are type-safe.
I rather read signal / slots as function to function connection. :)