Creates a new TreeView widget with the model initialized to model.
model
the model.
A newly created TreeView widget.