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.
我正在尝试实现一个TreeView可以过滤和编辑的 ,但没有成功。Gtk.TreeModelFilter没有实现SetValue()功能。我试图创建一个Gtk.TreeModelFilter以它为基础的新类并创建一个新SetValue()方法,但它没有被调用TreeView(总是Gtk.TreeModelFilter调用 's 方法)。我怎样才能实现一个过滤器TreeView可以做到这一点?
TreeView
Gtk.TreeModelFilter
SetValue()
您要设置的值是多少?
树视图 ui 对象通常需要您在渲染之前设置对象树。有时你通过树 api 构建新叶子;有时,它是一个对象。
树对象示例:
{ name: 'Maurice', children: [ { name: 'Mark', children: [ { name: 'Molly', children: [] }, { name: 'Drew', children: [] }, { name: 'Craig ', children: [] }]}]}