Opened 5 years ago

Last modified 5 years ago

#18 new defect

# 18 Use Tab to switch boxes

Reported by: wangzy Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:
Blocked By: Blocking:
Parent ID: Parent Tickets:
Estimated Number of Hours: 0.0 Add Hours to Ticket: 0
Billable?: yes Total Hours: 0

Description

Use Tab button to switch boxes in different boxes.


Subtickets (add)

Change History (7)

comment:1 follow-up: Changed 5 years ago by wangzy

Step 1. Delete the Load buttons in trans and scattering

comment:2 in reply to: ↑ 1 ; follow-up: Changed 5 years ago by wangzy

Use hasFocus and setFocus to judge which item has focus
Replying to wangzy:

Step 1. Delete the Load buttons in trans and scattering

comment:3 in reply to: ↑ 2 ; follow-up: Changed 5 years ago by wangzy

Use KeyRelease? to prevent the "space" in the text
Replying to wangzy:

Use hasFocus and setFocus to judge which item has focus
Replying to wangzy:

Step 1. Delete the Load buttons in trans and scattering

comment:4 in reply to: ↑ 3 ; follow-up: Changed 5 years ago by wangzy

Add installEventFilter in the class
Replying to wangzy:

Use KeyRelease? to prevent the "space" in the text
Replying to wangzy:

Use hasFocus and setFocus to judge which item has focus
Replying to wangzy:

Step 1. Delete the Load buttons in trans and scattering

comment:5 in reply to: ↑ 4 Changed 5 years ago by wangzy

Do the same to all modules, from ConfPage? to IQ2D
Replying to wangzy:

Add installEventFilter in the class
Replying to wangzy:

Use KeyRelease? to prevent the "space" in the text
Replying to wangzy:

Use hasFocus and setFocus to judge which item has focus
Replying to wangzy:

Step 1. Delete the Load buttons in trans and scattering

comment:6 Changed 5 years ago by wangzy

  • SelectAll? can't be used, due to the "space" from Tab button will delete all text

Didn't consider the LOAD buttons
* Didn't consider Shift+Tab, which will make the shift from down to up

comment:7 Changed 5 years ago by wangzy

Delete the cursor of the by using setTextCursor, textCursor().clearSelection()

Note: See TracTickets for help on using tickets.