找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 4229|回复: 0

[求助] 如何理解QTreeView和rowsInserted

6

主题

14

帖子

14

积分

贫民

积分
14
pythonpython 发表于 2017-11-2 10:48:28 | 显示全部楼层 |阅读模式
9威望
class TestTreeView(QTreeView):
    def __init__(self, parent=None):
        super(TestTreeView, self).__init__(parent)
    def rowsInserted(self, index, start, end):
        QTreeView.rowsInserted(self, index, start, end)

QTreeView.rowsInserted(self, index, start, end) 这句话中,从index中取出从start->end 的值插入到一个地方,在这里最后把值插入到哪里了呢?
这个需要去查看父类QTreeView如何定义rowsInserted吗? 假如我需要再访问我插入的数据,从哪里可以得到?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表