win10下编译qt3,qt_sendSpontaneousEvent was not declared in this scope

qt3没提供for win的版本,所以只好自己编译。

在****上下载了qt-win-commercial-3.3.4_and_license.zip这个包,声称是for win的自编译版本。

运行安装,开始解文件,然后开始编译 ,需要配置QTDIR为指定安装目录,比如QTDIR=d:\qt3\QT.VS2017\3.3.4。

在编译环节,有报一个error: 'qt_sendSpontaneousEvent' was not declared in this scope在qinputcontext_win.cpp,经查,是这个方法没有声明(qapplication_win.cpp里实现了这个方法,但qinputcontext_win.cpp里没声明它),所以手动在qinputcontext.cpp的开头处,加一句话:
extern bool qt_sendSpontaneousEvent( QObject *receiver, QEvent *event );

然后编译就过了。

win10下编译qt3,qt_sendSpontaneousEvent was not declared in this scope