#include mainwindowh#include ui_mainwindowhMainWindowMainWindowQWidget parent QMainWindowparent uinew UiMainWindow ui-setupUithis; 设置窗口透明度 this-setWindowOpacity08; connectui-bt_loa
可能是因为lpPrevWndFunc没有被定义。在头文件中声明一个静态变量,但是需要在源文件中进行定义,例如在MainWindow.cpp文件中添加以下代码:
WNDPROC MainWindow::lpPrevWndFunc = nullptr;
这样就可以解决 undefined reference to `MainWindow::lpPrevWndFunc' 的问题了。
原文地址: https://www.cveoy.top/t/topic/cgvJ 著作权归作者所有。请勿转载和采集!