GtkD: Best way to get TreeStore out of TreeView.Model
Alex Horvat
alexh at gmail.com
Tue Jun 11 10:55:58 PDT 2013
On Tuesday, 11 June 2013 at 17:41:59 UTC, Mike Wey wrote:
> On 06/11/2013 05:56 PM, Alex Horvat wrote:
>> TreeStore store = cast(TreeStore)tvTreeView.getModel();
>> In this case store == null
>
> I think that one should work, how are you setting/creating the
> TreeStore?
tvTreeView.setModel(CreateModel());
private TreeStore CreateModel()
{
TreeStore treeStore = new TreeStore([GType.STRING,
GType.STRING, Pixbuf.getType()]);
Values a filled recursively using treeStore.setValue(iter,
column, value);
}
More information about the Digitalmars-d-learn
mailing list