Home > Mobile >  Want to ask next everybody, qt signals and slots in the c # winform is triggered
Want to ask next everybody, qt signals and slots in the c # winform is triggered

Time:01-19

A qt virtual keyboard, want to turn it into a DLL call let winform, but there is a connect function to trigger a virtual keyboard clicks, send such behavior, how do I trigger it in winform connect function, or how can I call DLL can trigger it click, send behavior such as ~
QObject: : connect (XYVirtualKeyboard: : getInstance (),
//& amp; XYVirtualKeyboard: : keyClicked, [] (int unicode, int key, Qt: : KeyboardModifiers modifiers, bool press) {
//event=new QKeyEvent QKeyEvent * (press? QEvent: : KeyPress: QEvent: : KeyRelease,
//key,
//modifiers,
//QChar (unicode));
//const QApplication * app=qApp;
//QWidget * focusWindow=app? App - & gt; FocusWidget () : Q_NULLPTR;
//if (focusWindow) {
//app - & gt; PostEvent (focusWindow, event);
//}
//});


Above is a virtual keyboard on the trigger,
  •  Tags:  
  • Qt
  • Related