focusNextChild, focusNextPrevChild - HbQt

159 views
Skip to first unread message

Luigi Ferraris

unread,
May 3, 2013, 5:26:54 AM5/3/13
to qtcon...@googlegroups.com
Hi Pritpal, I read about these two methods for give focus to next child[ren]. On the other hand, I see they are Protected or Virtual Protected (and this can be a problem...) but it seems useful in some situations avoiding usage of "send a key press event" (ie Qt_Key_Tab).
I think they are useful because is an internal finder for the next focusing object.
Is there a way to use these methods with HbQt?
As Qt doc write here http://qt-project.org/doc/qt-4.8/qwidget.html#focusNextChild are QWidget methods. I think the main usage is from a "window", so "normally" I can see this code QMainWindow:findNextChild().

Cheers

Luigi Ferraris

Pritpal Bedi

unread,
May 6, 2013, 3:47:11 PM5/6/13
to qtcon...@googlegroups.com
Luigi
As discussed many times, 
to bring a protected method in Qt class  on prg level 
requires that class be subclassed on C++ level and then a prg 
layer imposed on top of that. It needs extensive efforts to write 
the code and then maintain that.

So we have avoided that very route since begining.


Pritpal Bedi
Reply all
Reply to author
Forward
0 new messages