Hi All,
I open a "local" dialog from my mainwindow. Using
Qt Code:
  1. Add_Dialog madd_dialog;
  2.  
  3. madd_dialog.setModal( true );
  4. madd_dialog.exec( );
To copy to clipboard, switch view to plain text mode 

everything works fine however when I go to close it I get a segmentation fault.
On commenting out everything except the constructor and de-constructor I've found that putting a model in my class produces the crash, so my class shows
Qt Code:
  1. private:
  2. Ui::Add_Dialog *ui;
  3.  
  4. // QStandardItemModel model;
To copy to clipboard, switch view to plain text mode 

if I comment out model it works fine. I presume this is something to do with memory however am not knowledge of Qt is not enough to work out the issue.

Also related to this does the debugger have a backtrace like ddd so when I get a seg fault I can see what's causing it.


Thanks