Reply
Thread Tools
Posts: 239 | Thanked: 194 times | Joined on Jul 2010 @ Amsterdam
#1
Hi community,

I've been searching everywhere for an answer, but I couldn't find any.

My problem is as follows.

I have a user interface created with Qt Creator and there are a few line edit components in it. I would expect the arrow buttons to work as native Maemo applications, namely that it would change the focus, but I can't seem to get the same result. The arrow buttons do nothing but navigate the cursor in the line edit field. Up and down do nothing at all and I would expect that that would cause a focus change to the next or previous line edit component.

Does someone know what I'm doing wrong here?

Many thanks in advance.

Regards,

Willem Liu
__________________
Please give or donate your 2 cents to help me keep on going.
 
Posts: 94 | Thanked: 253 times | Joined on Jan 2010 @ Virginia
#2
I am slightly confused by the 'arrow buttons' you mention. Is it the keys on the keyboard?

You may be able to install an event filter and handle the button presses yourself.
 
Zas's Avatar
Posts: 196 | Thanked: 113 times | Joined on Jun 2010 @ Finland
#3
Does your keyboard have two or four arrow buttons?
 
Posts: 239 | Thanked: 194 times | Joined on Jul 2010 @ Amsterdam
#4
@Dotblank

Yes, the arrow buttons on the keyboard.

@Zas

I have 4 arrow buttons: up, down, left, right.

So there is no other solution than to handle the events myself? I would've thought it was OS functionality.
__________________
Please give or donate your 2 cents to help me keep on going.
 
Posts: 94 | Thanked: 253 times | Joined on Jan 2010 @ Virginia
#5
Originally Posted by Willem Liu View Post
@Dotblank

Yes, the arrow buttons on the keyboard.

@Zas

I have 4 arrow buttons: up, down, left, right.

So there is no other solution than to handle the events myself? I would've thought it was OS functionality.
On the desktop computer the up/down between input fields is usually handled by using tab. I think the term that applies to this type of thing is called "accelerators". I actually am not sure how tab functionality is handled on maemo
 
Posts: 94 | Thanked: 253 times | Joined on Jan 2010 @ Virginia
#6
Here is some explanation of qt and window focus:

http://cartan.cas.suffolk.edu/qtdocs/focus.html

Hope it helps but you may have already read it
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:31.