On 22.01.06 13:41:39, Andreas Pakulat wrote:
> BTW: Do you have any idea why I can't call model() right after
> setModel()? I get a None object back. It works when I do have a global
> reference to the model, but not if I create the Model right inside the
> setModel call.
Forget that, I shouldn't
On 22.01.06 11:34:34, Phil Thompson wrote:
> On Sunday 22 January 2006 12:53 am, Andreas Pakulat wrote:
> > Hi,
> >
> > using setModel() on a QTreeView results in the TreeView "loosing" it's
> > model, if I don't save a separate reference to it. Following code
> > doesn't work:
> >
> > tree = QtGui
On Sunday 22 January 2006 12:53 am, Andreas Pakulat wrote:
> Hi,
>
> using setModel() on a QTreeView results in the TreeView "loosing" it's
> model, if I don't save a separate reference to it. Following code
> doesn't work:
>
> tree = QtGui.QTreeView()
> tree.setModel(SomeTreeModel(tree))
> tree.sh
Hi,
using setModel() on a QTreeView results in the TreeView "loosing" it's
model, if I don't save a separate reference to it. Following code
doesn't work:
tree = QtGui.QTreeView()
tree.setModel(SomeTreeModel(tree))
tree.show()
The tree is empty, however first creating a variable pointing to the