![]() |
2012-06-25
, 16:54
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#682
|
seems like QT input widget is only proper solution :S
there's dev's around globe who might help you, i hope...i am just not right guy for QT :S damn
i can test though...
i hope you will get that device as soon as possible
![]() |
2012-06-25
, 17:32
|
|
Posts: 640 |
Thanked: 435 times |
Joined on Oct 2011
@ rajvoSa BA
|
#683
|
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
![]() |
2012-06-25
, 17:49
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#684
|
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 rainisto For This Useful Post: | ||
![]() |
2012-06-25
, 18:16
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#685
|
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: | ||
![]() |
2012-06-25
, 19:17
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#686
|
You should be able to 'hide' it if you programatically set focus to qlinedit. http://stackoverflow.com/questions/5...it-focus-in-qt
![]() |
2012-06-25
, 19:46
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#687
|
There is a way AFAIK, look at void MozQWidget::showVKB() here
The Following 2 Users Say Thank You to DavyP For This Useful Post: | ||
![]() |
2012-06-25
, 19:50
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#688
|
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: | ||
![]() |
2012-06-25
, 21:24
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#689
|
Yeah, apparently the QTimer::singleShot ugly hack workarounds that
The Following 4 Users Say Thank You to DavyP For This Useful Post: | ||
![]() |
2012-06-25
, 22:02
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#690
|
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: | ||
there's dev's around globe who might help you, i hope...i am just not right guy for QT :S damn
i can test though...
i hope you will get that device as soon as possible