| The Following User Says Thank You to rainisto For This Useful Post: | ||
|
|
06-25-2012
, 02:16 PM
|
|
Posts: 2,177 |
Thanked: 8,275 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#682
|
It turns out that triggering the virtual keyboard is a bit harder than I thought.
I implemented a simple app with a textfield (subclassing QLineEdit), but even after posting QEvent::RequestSoftwareInputPanel events and faking mouse press/release events, I cannot get the virtual keyboard to automatically pop up. The user still has to tap the widget, so I cannot hide it by putting it somewhere off the screen.
WinCE and Android had proper APIs to handle the keyboard. With Maemo, it seems I have to reimplement my own keyboard.
Davy
| The Following User Says Thank You to freemangordon For This Useful Post: | ||
|
|
06-25-2012
, 03:17 PM
|
|
Posts: 306 |
Thanked: 601 times |
Joined on Jan 2012
@ Belgium
|
#683
|
You should be able to 'hide' it if you programatically set focus to qlinedit. http://stackoverflow.com/questions/5...it-focus-in-qt
|
|
06-25-2012
, 03:46 PM
|
|
Posts: 306 |
Thanked: 601 times |
Joined on Jan 2012
@ Belgium
|
#684
|
There is a way AFAIK, look at void MozQWidget::showVKB() here
| The Following 2 Users Say Thank You to DavyP For This Useful Post: | ||
|
|
06-25-2012
, 03:50 PM
|
|
Posts: 2,177 |
Thanked: 8,275 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#685
|
Thanks. I figured out what went wrong. Even though I called setFocus, the widget did not have focus yet when posted the RequestSoftwareInputPanel event. I made some progress.
Davy
| The Following User Says Thank You to freemangordon For This Useful Post: | ||
|
|
06-25-2012
, 05:24 PM
|
|
Posts: 306 |
Thanked: 601 times |
Joined on Jan 2012
@ Belgium
|
#686
|
Yeah, apparently the QTimer::singleShot ugly hack workarounds that
| The Following 4 Users Say Thank You to DavyP For This Useful Post: | ||
|
|
06-25-2012
, 06:02 PM
|
|
Posts: 2,177 |
Thanked: 8,275 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#687
|
Yes, I got it working now.
My next problem is that the virtual keyboard does not produce any KeyPress events (physical keyboard does produce them on the N900). The textChanged/textEdited signals of QLineEdit are not that
useful to identify which key was pressed. Seems like I have to mess
around with some X11 events.
Davy
| The Following User Says Thank You to freemangordon For This Useful Post: | ||
|
|
06-26-2012
, 02:17 PM
|
|
|
Moderator |
Posts: 1,943 |
Thanked: 1,625 times |
Joined on Dec 2009
@ Bize Maemo'da Trabzon
|
#688
|
| The Following User Says Thank You to HtheB For This Useful Post: | ||
|
|
06-27-2012
, 06:27 PM
|
|
Posts: 306 |
Thanked: 601 times |
Joined on Jan 2012
@ Belgium
|
#689
|
I just installed the newest midlets.
One of the apps (midlet) is called whatsapp, but it's NOT whatsapp! it's some app called Qute...
Please don't confuse people with this.....
Can you fix this please?
|
|
06-28-2012
, 12:18 PM
|
|
Posts: 15 |
Thanked: 30 times |
Joined on Apr 2012
@ Perth, Australia
|
#690
|
| The Following User Says Thank You to jkingok For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
|
IRC: jonni@freenode ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.