Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有两个滚动条的 StyledText 小部件。里面的文本比客户区大(两个滚动条都处于活动状态)。我遍历文本中的每个字符。
如何自动滚动以显示每个可见的字符(迭代器选择的字符)?
调用 的showSelection方法StyledText以确保当前选择可见。
showSelection
StyledText