Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
原issue:
由于原代码的按钮区域大未正确设置,且按钮设置为固定大小,而 QGridLayout会自动调整,导致按钮间隔不一致。 现在略微修改一些Widget和按钮宽度,将按钮大小调整为用setMaximumSize或setMinimumSize设置,使得各模式下按钮布局间隔均一致。
修改前后对比(左图为修改后效果):
标准模式最明显
科学模式
程序员模式
整体布局更加和谐,特别是标准模式、科学模式。