Another Datapoint:
I'm using multiple inheritance to use graphic objects generated from QDesigner, in this case in the file ui_mainwindow.h (I have used the multiple inheritance approach in other projects without experiencing this problem). If I replace the:
tvForecastHeader->setModel(HeaderModel);
tvForecastHeader->setModel(HeaderModel);
To copy to clipboard, switch view to plain text mode
where tvForecastHeader is created in the object defined in ui_mainwindow.h and instantiated in the mainwindow constructor:
MainWindow
::MainWindow(QWidget *parent
) : QMainWindow(parent
), ui
(new Ui
::MainWindowClass){
ui->setupUi(this);
...
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindowClass)
{
ui->setupUi(this);
...
To copy to clipboard, switch view to plain text mode
with a locally created one as in:
DetailView->setModel(HeaderModel);
DetailView = new QTableView();
DetailView->setModel(HeaderModel);
To copy to clipboard, switch view to plain text mode
It doesn't crash. But I can't see what's different from this and the instatiation in MainWindowObject.
?? Doug
Bookmarks