Qt focus changing order

后端 未结 1 718
萌比男神i
萌比男神i 2021-01-20 02:11

For example we have a groupbox with some amount of lineEdits.
When user press Tab focus from one lineEdit changed to other.
How to make focus change in the specific

1条回答
  •  粉色の甜心
    2021-01-20 02:45

    In a designer you should select Edit->Edit Tab Order (blue numbers will appear). Than you click on your widgets in the order you want them (numbers will change). After you are done, you should select Edit->Edit Widgets (or press F3).

    If you are not using designer, use:

    void QWidget::setTabOrder ( QWidget *first, QWidget *second );
    

    0 讨论(0)
提交回复
热议问题