Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

QT and OS 2.0 - Weird keyboard behavior

Hi,

I've noticed that in widgets that have keyboard input (QPlainTextEdit for example but basically all QWidget's descendants) you can enter symbols only if "Show predictions and suggestions" are ON and only if there is any prediction/suggestion.

Is anybody seeing this problem?

There wasn't a problem like this in OS 1.0.

Thanks.

New Developer
Posts: 19
Registered: ‎02-24-2012
My Device: Developer
My Carrier: -

Re: QT and OS 2.0 - Weird keyboard behavior

[ Edited ]

Hi,

 

I've just modified the Calculator app to allow entering text in the computing box by making the underlying QLineEdit editable. After that I've replaced the QLineEdit with a QPlainTextEdit (replaced text() with toPlainText() and setText() to setPlainText()). In both cases I was able to enter text (letters, digits, symbols) with "Show predictions and suggestions" set to OFF, using the soft keyboard as well as the hard one. I am using the simulator, not a device.

 

 

Dumi.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: QT and OS 2.0 - Weird keyboard behavior

Hi dumi,

thanks for testing!!!

When you hit Enter does your cursor go to new line?

Sorry I was not clear I was having problem with <Enter> it just did not go to new line.

I've found that it was caused by setCentralWidget() function. When I commented it out everything started to work properly.

Do you use setCentralWidget() in your app?

New Developer
Posts: 19
Registered: ‎02-24-2012
My Device: Developer
My Carrier: -

Re: QT and OS 2.0 - Weird keyboard behavior

I did not use setCentralWidget() so far in my apps.

 

Best regards,

Dumi

Developer
Posts: 188
Registered: ‎01-27-2012
My Device: playbook
My Carrier: ...

Re: QT and OS 2.0 - Weird keyboard behavior

I also do not have any problems with text input on widgets. The input method hints don't work for me though.

I do not setCentralWidget().

Cheers,

Jon

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: QT and OS 2.0 - Weird keyboard behavior

Thanks guys for checking/replying. Lesson learned - do not use setCentralWidget().