[Qt-interest] emitting signal from another class
Sajjad
dosto.walla at gmail.com
Thu Jul 15 13:10:49 CEST 2010
Hello forum,
I have a singleton class whose data are shared between different other
classes. The Shared class has some signals defined.
I am getting the following error when i try to emit sigal of the shared
class from another class:
***********************************
/home/studenter/sajis997/QtStuff/transformation/SharedWidgetData.h:79:
error: ‘void SharedWidgetData::modelViewMatrixChanged()’ is protected
***********************************
the code that generated the error is follows:
******************************************
.....
.....
emit pSharedData->modelViewMatrixChanged();
......
......
******************************************
It seems that the signals are by default protected. Is that so or i am
getting it somewhere wrong.
Any explanation or suggestion ?
Regards
Sajjad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100715/082ea70a/attachment.html
More information about the Qt-interest-old
mailing list