Skip to content

getParent() ==null #3

Description

@ZRR666

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions