static QWidget* getParent()
{
return QWidget::find((WId)Plugin::hwndDlg);
}
void QtPlugin::Setup()
{
QWidget* parent = getParent();//parent= NULL
pluginDialog = new PluginDialog(parent);
pluginDialog->show();
pluginTabWidget = new PluginTabWidget(parent);
GuiAddQWidgetTab(pluginTabWidget);
SetEvent(hSetupEvent);
}
The getParent() function returns NULL causing a crash
static QWidget* getParent()
{
}
void QtPlugin::Setup()
{
}
The getParent() function returns NULL causing a crash