How to process signals in a Qt subclass?

前端 未结 3 1704
生来不讨喜
生来不讨喜 2021-01-11 17:17

How do I process a signal of in a subclass? Let\'s say my subclass is derived from QTextEdit and is interested in the signal textChanged. It seem

3条回答
  •  情书的邮戳
    2021-01-11 17:33

    It is perfectly ok to connect a signal to a slot in the same class. So implement your slot and connect it to textChanged(QString)

提交回复
热议问题