Reply
Thread Tools Search this Thread
Posts: 681 | Thanked: 742 times | Joined on Jan 2012 @ Finland
#681
Originally Posted by DavyP View Post
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
You should be able to 'hide' it if you programatically set focus to qlinedit. http://stackoverflow.com/questions/5...it-focus-in-qt
__________________
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.
 

The Following User Says Thank You to rainisto For This Useful Post:
Posts: 2,177 | Thanked: 8,275 times | Joined on Mar 2010 @ Sofia,Bulgaria
#682
Originally Posted by DavyP View Post
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
There is a way AFAIK, look at void MozQWidget::showVKB() here
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following User Says Thank You to freemangordon For This Useful Post:
Posts: 306 | Thanked: 601 times | Joined on Jan 2012 @ Belgium
#683
Originally Posted by rainisto View Post
You should be able to 'hide' it if you programatically set focus to qlinedit. http://stackoverflow.com/questions/5...it-focus-in-qt
Thanks for the tip, but I already tried this before and it does not
work.

The example shows the QLineEdit and the widget has focus, but the virtual keyboard does not pop up. I still have to tap on the widget to
trigger it (tested on N900).

Davy
 
Posts: 306 | Thanked: 601 times | Joined on Jan 2012 @ Belgium
#684
Originally Posted by freemangordon View Post
There is a way AFAIK, look at void MozQWidget::showVKB() here
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 2 Users Say Thank You to DavyP For This Useful Post:
Posts: 2,177 | Thanked: 8,275 times | Joined on Mar 2010 @ Sofia,Bulgaria
#685
Originally Posted by DavyP View Post
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
Yeah, apparently the QTimer::singleShot ugly hack workarounds that
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following User Says Thank You to freemangordon For This Useful Post:
Posts: 306 | Thanked: 601 times | Joined on Jan 2012 @ Belgium
#686
Originally Posted by freemangordon View Post
Yeah, apparently the QTimer::singleShot ugly hack workarounds that
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 4 Users Say Thank You to DavyP For This Useful Post:
Posts: 2,177 | Thanked: 8,275 times | Joined on Mar 2010 @ Sofia,Bulgaria
#687
Originally Posted by DavyP View Post
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
Look through the whole file I sent the link to, this is a part of Qt backend of fennec 16a1, you should do almost the same thing fennec does
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following User Says Thank You to freemangordon For This Useful Post:
HtheB's Avatar
Moderator | Posts: 1,943 | Thanked: 1,625 times | Joined on Dec 2009 @ Bize Maemo'da Trabzon
#688
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?
__________________
www.HtheB.com
Nintendo DS Homebrew Developer
 

The Following User Says Thank You to HtheB For This Useful Post:
Posts: 306 | Thanked: 601 times | Joined on Jan 2012 @ Belgium
#689
Originally Posted by HtheB View Post
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?
Sorry about this. Someone gave me a pointer to this app on the
previous page of this forum, but I did not test it myself thoroughly
as I am not a WhatsApp user myself. I removed the midlet from
my latest package.

http://davy.preuveneers.be/phoneme/public/maemo/deb/

Thanks for reporting this.

Regards
Davy
 

The Following 4 Users Say Thank You to DavyP For This Useful Post:
Posts: 15 | Thanked: 30 times | Joined on Apr 2012 @ Perth, Australia
#690
I have just started testing phoneME for the purpose of getting Verisign VIP Access to work (http://m.verisign.com) on an N9.

So far in my trials neither the Sony Ericsson nor Nokia versions work (there is no obviously generic J2ME version). The version for the Motorola RAZR V3 gets as far as an 0x8 error (Verisign code) when attempting to "activate" itself over the Internet for both 3G and Wifi connections already connected. (It gets an 0xb error when there's no Internet connection at all.) It appears this could be a https or wap connection problem. (Or maybe encryption support in general as that is how it creates its key values, but I don't think it's getting that far.)

There is nothing at all in the console output of note. I run it with the command:
/opt/phoneme/bin/cvs -Xmx12m -Dmicroedition.profiles=MIDP-2.1 -Dsun.midp.library.name=midp -Dsun.midp.home.path=/opt/phoneme/midp/midp_linux_fb_gcc -Dcom.sun.midp.mainClass.name=com.sun.midp.main.Cdc MIDletSuiteLoader sun.misc.MIDPLauncher -suitepath mvip_030006_moto_m-v3_u_en_US_VSS.jar -jadpath mvip_030006_moto_m-v3-u_en_US_VSS.jad -1 MVClient

The app can be downloaded from http://m.verisign.com but first you have to spoof your user agent in your browser to get the download button and then open the JAD file in a text editor to get the JAR file download URL. You have to give phoneme the JAD file because Verisign adds a lot of custom properties.

I don't expect any help on this due to the closed source. I could email Verisign later but I wouldn't expect much from them.
__________________
 

The Following User Says Thank You to jkingok For This Useful Post:
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 12:22 AM.