x64dbg / QtPlugin

Plugin demonstrating how to link with Qt.
MIT License
26 stars 16 forks source link

getParent() ==null #3

Open ZRR666 opened 11 months ago

ZRR666 commented 11 months ago

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

mrexodia commented 11 months ago

Did you initialize the hwnd correctly in your plugin? Please provide the full code.

ZRR666 commented 11 months ago

image image

I didn't make any changes to the code, okay I'm just saying that the QT project was converted to the VS2019 project using VS2019's qt vs tool and nothing else has changed

ZRR666 commented 11 months ago

image

ZRR666 commented 11 months ago

您是否在插件中正确初始化了 hwnd?请提供完整代码。

Did you initialize the hwnd correctly in your plugin? Please provide the full code.

Look at the code

I didn't make any changes to the code