Hi All,
I open a "local" dialog from my mainwindow. Using
Add_Dialog madd_dialog;
madd_dialog.setModal( true );
madd_dialog.exec( );
Add_Dialog madd_dialog;
madd_dialog.setModal( true );
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
private:
Ui::Add_Dialog *ui;
// QStandardItemModel model;
private:
Ui::Add_Dialog *ui;
// 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
Bookmarks