Home > Back-end >  Consult everybody bosses a QT input method
Consult everybody bosses a QT input method

Time:01-16

Now I want to have a virtual keyboard input method of QT framework to integrate into a DLL call c #, but with no contact before have the QT, so having a lot of headaches, now want to ask a question, is there is a signal in QT slot, such as a key on the keyboard is pressed, the trigger function, excuse me this how to make the keyboard in c # to trigger the signal function

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);
//}
//});

This function keyClicked such as above, I how to call outside trigger it? Newbie question, bosses, please forgive me!
  • Related