question about focus...

Nalin Savara nsnsns at gmail.com
Tue Aug 7 04:00:21 UTC 2012


On Tue, Aug 7, 2012 at 9:19 AM, Josiah Bryan <josiahbryan at gmail.com> wrote:

> On Mon, Aug 6, 2012 at 11:27 PM, Nalin Savara <nsnsns at gmail.com> wrote:
>
>> <snip>
>> I noticed; that when a app starts OR when a new dialog is opened (for
>> example: about box OR help dialog)... the new dialog doesnt have keyboard
>> focus-->> and we cant detect what key is pressed OR if back button is
>> pressed.
>>
>>
> I haven't tried this myself, mainly because the one dialog I create in my
> Android Qt app is designed for user interaction and has ok/cancel buttons
> on the bottom (yes, not standard for Android.) However, if its a
> non-interactive dialog, can you call setFocus() on the dialog to force the
> focus to the dialog? Would that solve the catching of keypresses? Just some
> thoughts, may not work - I don't really know.
>
> Like I said - haven't had to try setFocus() for this use casea, but I have
> used setFocus() in desktop apps to force focus to go where I want for
> usability purposes.
>
> thanks Josiah-- but that doesnt work-- on Android-Qt-- even though
something similar works on same app in Qt Desktop.

Also, a app of ours has faced multiple QA rejections because of
non-standard back-button behavior in android qt.

QtActivity gets the events-- but somehow the android event system doesnt
get the back-button event unless we first touch (or click) a component in
that window first.


Regards,

Nalin

Cheers!
> -Josiah
>
> --
> Josiah Bryan
> 765-215-0511
> josiahbryan at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20120807/8360c79b/attachment.html>


More information about the Necessitas-devel mailing list