只显示按键的Tab顺序就可以 指的是按钮吧
如果是的话,你可以把按钮的tab顺序 调在最前面就行了。禁用估计不行,除非你不使用那些textedit把他们setenable(false)
使用代码调整tab 顺序可是使用这个静态函数:
void QWidget::setTabOrder ( QWidget * first, QWidget * second ) [static]
Puts the second widget after the first widget in the focus order.
Note that since the tab order of the second widget is changed, you should order a chain like this:
setTabOrder(a, b); // a to b
setTabOrder(b, c); // a to b to c
setTabOrder(c, d); // a to b to c to d
not like this:
// WRONG
setTabOrder(c, d); // c to d
setTabOrder(a, b); // a to b AND c to d
setTabOrder(b, c); // a to b to c, but not c to d
If first or second has a focus proxy, setTabOrder() correctly substitutes the proxy.