Qt設計器的Tab順序編輯模式

Qt設計器的Tab順序編輯模式

Qt Designer‘s Tab Order Editing Mode Many users expect to be able to navigate between widgets and controls using only the keyboard。

Qt設計器的Tab順序編輯模式許多使用者希望能夠僅使用鍵盤在小部件和控制元件之間進行導航。

Qt lets the user navigate between input widgets with the Tab and Shift+Tab keyboard shortcuts。

Qt允許使用者使用Tab鍵和Shift+Tab鍵在輸入小部件之間導航。

The default tab order is based on the order in which widgets are constructed。

預設選項卡順序基於構建小部件的順序。

Although this order may be sufficient for many users, it is often better to explicitly specify the tab order to make your application easier to use。

雖然這個順序對於許多使用者來說已經足夠了,但是為了使應用程式更易於使用,顯式指定選項卡順序通常會更好。

Setting the Tab Order To enter tab order editing mode, open the Edit menu and select Edit Tab Order。

設定標籤順序進入標籤順序編輯模式,開啟編輯選單,選擇編輯標籤順序。

In this mode, each input widget in the form is shown with a number indicating its position in the tab order。

在這種模式下,表單中的每個輸入小部件都顯示一個數字,表示它在選項卡順序中的位置。

So, if the user gives the first input widget the input focus and then presses the tab key, the focus will move to the second input widget, and so on。

因此,如果使用者將輸入焦點給第一個輸入小部件,然後按下tab鍵,焦點將移到第二個輸入小部件,依此類推。

The tab order is defined by clicking on each of the numbers in the correct order。

選項卡順序是透過按正確順序單擊每個數字來定義的。

The first number you click will change to red, indicating the currently edited position in the tab order chain。

您單擊的第一個數字將變為紅色,表示標籤訂單鏈中當前編輯的位置。

The widget associated with the number will become the first one in the tab order chain。

與編號相關聯的小部件將成為製表符訂單鏈中的第一個小部件。

Clicking on another widget will make it the second in the tab order, and so on。

單擊另一個小部件將使它成為選項卡順序中的第二個小部件,以此類推。

Repeat this process until you are satisfied with the tab order in the form —— you do not need to click every input widget if you see that the remaining widgets are already in the correct order。

重複此過程,直到您對錶單中的選項卡順序感到滿意為止——如果您看到其餘的小部件已經按正確的順序排列,則不需要單擊每個輸入小部件。

Numbers, for which you already set the order, change to green, while those which are not clicked yet, remain blue。

你已經設定了順序的數字變成綠色,而那些還沒有點選的數字仍然是藍色。

If you make a mistake, simply double click outside of any number or choose Restart from the form’s context menu to start again。

如果出現錯誤,只需在任何數字外雙擊或從表單的上下文選單中選擇Restart重新開始。

If you have many widgets on your form and would like to change the tab order in the middle or at the end of the tab order chain, you can edit it at any position。

如果你的窗體上有很多小部件,並且想要在中間或在標籤訂單鏈的末端改變標籤順序,你可以在任何位置編輯它。

Press Ctrl and click the number from which you want to start。

按Ctrl鍵,單擊要開始的數字。

Alternatively, choose Start from Here in the context menu。

或者,在上下文選單中選擇“從這裡開始”。

Qt設計器的Tab順序編輯模式

TAG: ordertab順序部件