[vtkusers] QVTKWidget , Application crashes on MS Compiler 64Bit Release ?

Ashika Umanga Umagiliya aumanga at biggjapan.com
Mon Jul 4 21:22:57 EDT 2011


Greeting all,

In my application ,I use QVTKWidget with QT 4.7.
Everything work fine with Mingw Release/Debug and on Linux/GCC.

Now I am in the process of compiling 64Bit version using MS C++ Compiler on
Windows 7 (version string : Microsoft (R) C/C++ Optimizing Compiler Version
16.00.30319.01 for x64)
I can run the application in Debug mode , but application crashes in Release
mode when I open my QVTKWidget.

Any tips?

Here's now I initialize the Widget :

meshesVboxLayout->addWidget(listWidget);
meshesVboxLayout->addWidget(eportVRMLbutton);

filterPanel=new RzWidgetFilterPanel(this);
filtersVBoxLayout->addWidget(filterPanel);
filtersVBoxLayout->addWidget(butUpdateMesh);

QWidget *tabControlWidget = new QWidget;
QWidget *tabFilterWidget=new QWidget;
tabFilterWidget->setFixedSize(280,450);

tabControlWidget->setLayout(meshesVboxLayout);
tabFilterWidget->setLayout(filtersVBoxLayout);


QTabWidget *tabWidget = new QTabWidget;
tabWidget->insertTab(0, tabControlWidget, "Meshes");
tabWidget->insertTab(1, tabFilterWidget, "Filters");

QSplitter *mainSplitter = new QSplitter(this);
mainSplitter->addWidget(qtWidget);
mainSplitter->addWidget(tabWidget);

mainHboxLayout->addWidget(mainSplitter);
setLayout(mainHboxLayout);



QObject::connect(listWidget, SIGNAL(itemChanged(QListWidgetItem*)), this,
SLOT(onListitemChanged(QListWidgetItem*)));
QObject::connect(listWidget, SIGNAL(itemClicked(QListWidgetItem*)), this,
SLOT(onListitemSelected(QListWidgetItem*)));
QObject::connect(opacitySlider, SIGNAL(valueChanged(int)), this,
SLOT(onOpacitySliderChanged(int)));
QObject::connect(eportVRMLbutton, SIGNAL(clicked()), this,
SLOT(onExportVRMLButtonClicked()));

QObject::connect(butUpdateMesh, SIGNAL(clicked()), this,
SLOT(slotUpdateMesh()));

QObject::connect(this,SIGNAL(signalUpdateProgress(int)),this,SLOT(slotUpdateProgress(int)));

mainSplitter->setFixedWidth(300);
qtWidget->resize(800,600);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110705/7af17e68/attachment.htm>


More information about the vtkusers mailing list