CodePudding user response:
Premise is you of the library in send custom signal, send handle is qt form,Then signal can be processed in inside qt:
Bool QWidgetB: : winEvent (MSG * message, long * result)
{
If (message - & gt; Message==(WM_USER + 100))
{
QString * text=(QString *) message - & gt; WParam.
QString STR=* text;
UI. TextEdit - & gt; Append (STR);
}
Return QWidget: : winEvent (message, result);
Specific can refer to: https://blog.csdn.net/qiangzi4646/article/details/75095894