private/public qt signals

前端 未结 7 2277
情话喂你
情话喂你 2020-12-10 00:36

Can Qt signals be public or private? Can I create internal signals, which are seen only inside the class?

Update: I have a class with some internal

7条回答
  •  感动是毒
    2020-12-10 01:18

    Signals was protected in Qt4, in Qt5 they are public. Int Qt5 you can make them private by adding QPrivateSignal as the last argument. More on this: http://woboq.com/blog/how-qt-signals-slots-work-part2-qt5.html

提交回复
热议问题