May 30, 2011

gogoi gogoi
Lab Rat
58 posts

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

May 30, 2011

Alexander Kuchumov Alexander Kuchumov
Lab Rat
377 posts

where? symbian?

May 30, 2011

gogoi gogoi
Lab Rat
58 posts

yeh..working in qt 1.1

May 30, 2011

Luca Luca
Ant Farmer
589 posts
gogoi wrote:
yeh..working in qt 1.1

qt 1.1 ???

May 30, 2011

Alexander Kuchumov Alexander Kuchumov
Lab Rat
377 posts

Luca, I suppose – QtSDK 1.1 :)

May 30, 2011

Alexander Kuchumov Alexander Kuchumov
Lab Rat
377 posts

gogoi, see symbian api.

May 30, 2011

Luca Luca
Ant Farmer
589 posts
Alexander Kuchumov wrote:
Luca, I suppose – QtSDK 1.1 :)

Yes, it’s possible.

May 30, 2011

gogoi gogoi
Lab Rat
58 posts

hello Luca

Can you please suggest me how that can be done..

with regards
Rahul

May 30, 2011

Luca Luca
Ant Farmer
589 posts

gogoi wrote:
hello Luca

Can you please suggest me how that can be done..

with regards
Rahul

As Alexander suggest you :

Alexander Kuchumov wrote:
see symbian api.

I’ve never used it.

May 31, 2011

gogoi gogoi
Lab Rat
58 posts

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

May 31, 2011

peppe peppe
Ant Farmer
1025 posts

See Qt::WA_InputMethodEnabled , QWidget::setFocusPolicy and QApplication::setAutoSipEnabled.

 Signature 

Software Engineer
KDAB (UK) Ltd., a KDAB Group company

May 31, 2011

gogoi gogoi
Lab Rat
58 posts

ok..thanks pepe..I will check it out..

regards
gogoi

June 1, 2011

gogoi gogoi
Lab Rat
58 posts

hello pepe..can u provide me a sample code with regard to ur functions..

regards
gogoi

June 2, 2011

Vijay Bhaska Reddy Vijay Bhaska Reddy
Lab Rat
399 posts

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

 
  ‹‹ PositionSource - good for open air only?      Your app may be rejected If you are using Qt sdk 1.1 ››

You must log in to post a reply. Not a member yet? Register here!