Got it to work at last.
Cheers for the Stack hint. I put model onto the heap instead of the stack.
i.e.
created a model member in FindSceneDialog.
TreeModel *model;
and change the FindDialoge constructor
TreeModel *model = new TreeModel(file.readAll());
seems to do the trick.
Harvey.
Bookmarks