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 -
where? symbian?
-
yeh..working in qt 1.1
-
[quote author="gogoi" date="1306746541"]yeh..working in qt 1.1[/quote]
qt 1.1 ???
-
Luca, I suppose - QtSDK 1.1 :)
-
gogoi, see symbian api.
-
[quote author="Alexander Kuchumov" date="1306751623"]Luca, I suppose - QtSDK 1.1 :)[/quote]
Yes, it's possible.
-
hello Luca
Can you please suggest me how that can be done..
with regards
Rahul -
[quote author="gogoi" date="1306759550"]hello Luca
Can you please suggest me how that can be done..
with regards
Rahul[/quote]As Alexander suggest you :
[quote author="Alexander Kuchumov" date="1306751733"]see symbian api.[/quote]I've never used it.
-
hello friends.I mean to say.suppose when we take a simple lineedit in a designer and run that project on to the device...we just get a simple line edit..so when we click on a line edit a virtual keyboard of mobile opens..so how that can be done for a pushbutton..
reagards
gogoi -
See Qt::WA_InputMethodEnabled , QWidget::setFocusPolicy and QApplication::setAutoSipEnabled.
-
ok..thanks pepe..I will check it out..
regards
gogoi -
hello pepe..can u provide me a sample code with regard to ur functions..
regards
gogoi -
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