Op 21-9-2011 19:09, Thiago Macieira schreef:
> On Wednesday, 21 de September de 2011 18:47:38 Andre Somers wrote:
>> Is it really nessecairy that _everyone_ has public access to the signal?
>> What if only QObject had access to it? Would that work? If so, it could
>> work to just make QObject a friend class of every class that has the
>> Q_OBJECT macro defined, right? Could that work?
> I don't know what you mean here. The access rights are only these: public,
> protected, private.
>
> If I need to write&MyClass::signalName in my code, then I need signalName to
> be public or that my code is a friend of MyClass. Listing all possible classes
> that may want to connect to the signals is an impossible task.
>
> So public is the only option.
Ah... Bug in my thinking. You need to have the access at the place where 
you make the connect, not so much in the connect function itself. Never 
mind, carry on, nothing to see here...

André

_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to