Custom Views and Generic Delegates in GUI Programming
1. Custom Views
1.1 Key Press Handling
In custom views, only the Up Arrow and Down Arrow key presses are supported. When the user presses either of these keys:
1. The selected row is incremented or decremented.
2. It is ensured that the selected row is within the valid range.
3. A paint event is scheduled.
If the user navigates to a row above the top - most visible row or below the bottom - most visible row, the scroll area is instructed to make the scrolled - to row visible. A clicked() signal is also emitted with the newly selected row’s model index. For other key presses, the event is passed to the base class.
self
超级会员免费看
订阅专栏 解锁全文
900

被折叠的 条评论
为什么被折叠?



