I've created 2 widget with Desinger (Widget1 and Widget2) , each one has it's tab order defined. A third widget (Widget3 )is defined programmatically and contains the above 2 widget in a vertical layout. In on a symbian non touch device. When I focus on widget3 I want to give the focus to widget1. Then go from widget1 to widget2 using the phone arrow when I reach the end of the widget1 tab chain. What is the proper way of doing this?
相关问题
- QML: Cannot read property 'xxx' of undefin
- QTextEdit.find() doesn't work in Python
- QT Layouts, how to make widgets in horizontal layo
- QT GUI freezes even though Im running in separate
- QGraphicsView / QGraphicsScene size matching
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- Is there a non-java, cross platform way to launch
- How to get a settings storage path in a cross-plat
- Why doesn't valgrind detect a memory leak in m
- QTreeView remove decoration/expand button for all
- qt界面拥挤
- how do I correctly return values from pyqt to Java
From Qt Documentation for,
which states that, Puts the second widget after the first widget in the focus order.
So for you, the first widget will be your
Widget3
and second widget will be yourWidget1
. (if i understood the question correctly)Besides that, there are examples available regarding the usage of this function in the link I provided above. You can use it.
Hope it helps..
It is also possible to take advantage of the default tab order by set by item construction order. So just edit the .ui file XML:
In the order you wish the tab order to be.