Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QAxWidget Adobe PDF Reader working with kit Qt 5.14.1 MSVC2017 32 but not with kit with Qt 5.14.1 MSVC2017 64?
I try to read PDF in 64 bit (I'm Under Windows 7 64 Bit and kit Qt 5.14.1 MSVC2017 32 & 64 with acrobat reader DC )
the following command is working:
QAxWidget *pdf = new QAxWidget(this); pdf->setControl("Adobe PDF Reader"); pdf->dynamicCall("LoadFile(const QString&)", file.pdf);
but compiling the same project Under 64 bit kit return me the error:
QAxBase::setControl: requested control Adobe PDF Reader could not be instantiated and I got blank page.
How can I solve that please?
I try to downgrade to with acrobat reader X but same issue
but compiling the same project Under 64 bit kit return me the error
Do you mean 32bit works?
@jsulm pdf file is displayed and I can navigate within when I'm compiling with Kit Qt 5.14.1 MSVC2017 32bit but I receive QAxBase::setControl: requested control Adobe PDF Reader could not be instantiated and I got blank page.when I'm compiling the same project with kit Qt 5.14.1 MSVC2017 64bit
@filipdns I'm not an ActiveX expert, but maybe a 64bit app can't access 32 bit ActiveX controls?
@jsulm the problem is that using Qt 5.14.1 MSVC2017 64bit make using activex64 bit and this can not control 32bit application and acrobat reader XI or DC are 32 bit application, then this issue can not be solved and my project have to be a 32bit application.
JonB last edited by
And that, I'm afraid, is probably a true statement. If the only alternative is to swap whole application to 32-bit, which I suspect you won't want to do, could you consider just showing PDF in external application window launched from your app, or do you have to have it as embedded control?
@JonB No I want to embedded the pdf viewer inside my application, swap to 32bit application it not big deal for me that is just pity to have to
JonB last edited by JonB
I am not a Windows Qt user. But check Qt version against 32-bit under Windows --- it might apply to MinGW not MSVC, or even Linux, but I thought "recent" Qts have to be compiled 64-bit?