how to show keyboard
hello friends
can anyone tell me how to show keyboard on click of button..as on click of each textedit box a keyboard is shown automatically..now i want to do the same thing on click of button..
regards
Rahul
13 replies
Try below
// when you click the button, on click slot call below code
QEvent event(QEvent::RequestSoftwareInputPanel);
QApplication::sendEvent(editor, &event);
//to close kepad
QEvent event(QEvent::CloseSoftwareInputPanel);
QApplication::sendEvent(editor, &event);
//http://labs.qt.nokia.com/2009/08/31/new-api-for-input-panel-virtual-keyboards
You must log in to post a reply. Not a member yet? Register here!




