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.
我正在尝试在 QT 中为 Symbian OS 制作自定义列表视图。但是,我面临一些问题:我可以在任何我想要的地方绘制图标、文本等所有内容。
但是,默认情况下它不会被选中。
要进行选择,我需要手动绘制矩形。但是,如果它们被更改或发生其他一些事情,这可能是一个问题。
我将如何获得默认选择?
您可能想调用您的列表视图从 QWidget 继承的 setFocus() 方法。
我需要调用基类paint。一旦被覆盖的函数结束,我需要调用基类paint。