yes sorry.
I (Arnaud), work for a technical communication company. We are trying to make a software that uses a viewer with a activeX Control. So for that I need a QtAxWidget.
#include <ActiveQt/QAxWidget>
LeoValidatorGUI
::LeoValidatorGUI(QWidget *parent, Qt
::WFlags flags
){
ui.setupUi(this);
...
window->setControl("HKEY_CLASSES_ROOT\TypeLib\{ACFC5869-1D0F-4E2C-B898-05805607D542}"); // ClassID of the COM object
window->show();
...
}
#include <ActiveQt/QAxWidget>
LeoValidatorGUI::LeoValidatorGUI(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
...
QAxWidget *window = new QAxWidget();
window->setControl("HKEY_CLASSES_ROOT\TypeLib\{ACFC5869-1D0F-4E2C-B898-05805607D542}"); // ClassID of the COM object
window->show();
...
}
To copy to clipboard, switch view to plain text mode
Then, as I tols you I work with Visual, so in Project properties > Linker > input > Additional Dependencies, I've got :
LeoEngine.lib
kernel32.lib
user32.lib
shell32.lib
uuid.lib
ole32.lib
ws2_32.lib
gdi32.lib
comdlg32.lib
oleaut32.lib
libboost_filesystem-vc100-mt-sgd-1_49.lib
cgmlib_mt.lib
CgmObjectsRW_mt.lib
freetype2_mt.lib
zlib_mt.lib
imm32.lib
winmm.lib
winspool.lib
qtmaind.lib
QtCored.lib
QtGuid.lib
QAxContainerd.lib
QAxContainer.lib
LeoEngine.lib
kernel32.lib
user32.lib
shell32.lib
uuid.lib
ole32.lib
ws2_32.lib
gdi32.lib
comdlg32.lib
oleaut32.lib
libboost_filesystem-vc100-mt-sgd-1_49.lib
cgmlib_mt.lib
CgmObjectsRW_mt.lib
freetype2_mt.lib
zlib_mt.lib
imm32.lib
winmm.lib
winspool.lib
qtmaind.lib
QtCored.lib
QtGuid.lib
QAxContainerd.lib
QAxContainer.lib
To copy to clipboard, switch view to plain text mode
in Linker > General > Additional Library Directories :
$(QTDIR)\lib
if I do a
ECHO $(QTDIR)
ECHO $(QTDIR)
To copy to clipboard, switch view to plain text mode
I have C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2, which is rigth with to my Qt directory
Then I checked in C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\lib and there are : QAxContainerd.lib and QAxContainer.lib
and when I look into C/C++ > Command Line, I've got :
/I".\GeneratedFiles" /I"." /I"C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\include" /I".\GeneratedFiles\Debug" /I"C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\include\QtCore" /I"C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\include\QtGui" /I"..\LeoEngine\include" /I"..\LeoEngine\boost_1_45_0" /I"..\LeoEngine\tinyxml" /I"..\LeoEngine\include\CgmObjects" /I".\include" /Zi /nologo /W1 /WX- /Od /Oy- /D "UNICODE" /D "WIN32" /D "QT_LARGEFILE_SUPPORT" /D "QT_CORE_LIB" /D "QT_GUI_LIB" /Gm- /EHsc /MTd /GS /fp:precise /Zc:wchar_t- /Zc:forScope /Fp"Debug\LeoValidatorGUI.pch" /Fa"Debug\" /Fo"Debug\" /Fd"Debug\vc100.pdb" /Gd /analyze- /errorReport:queue
/I".\GeneratedFiles" /I"." /I"C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\include" /I".\GeneratedFiles\Debug" /I"C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\include\QtCore" /I"C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\include\QtGui" /I"..\LeoEngine\include" /I"..\LeoEngine\boost_1_45_0" /I"..\LeoEngine\tinyxml" /I"..\LeoEngine\include\CgmObjects" /I".\include" /Zi /nologo /W1 /WX- /Od /Oy- /D "UNICODE" /D "WIN32" /D "QT_LARGEFILE_SUPPORT" /D "QT_CORE_LIB" /D "QT_GUI_LIB" /Gm- /EHsc /MTd /GS /fp:precise /Zc:wchar_t- /Zc:forScope /Fp"Debug\LeoValidatorGUI.pch" /Fa"Debug\" /Fo"Debug\" /Fd"Debug\vc100.pdb" /Gd /analyze- /errorReport:queue
To copy to clipboard, switch view to plain text mode
and when I look into Linker > Command Line, I've got :
/OUT:"C:\Users\acasella\Documents\AnteaDev\Leo\Win32\Debug\\LeoValidatorGUI.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\lib" /LIBPATH:"./lib" /LIBPATH:"../LeoEngine/lib/Debug/win32" "LeoEngine.lib" "kernel32.lib" "user32.lib" "shell32.lib" "uuid.lib" "ole32.lib" "ws2_32.lib" "gdi32.lib" "comdlg32.lib" "oleaut32.lib" "libboost_filesystem-vc100-mt-sgd-1_49.lib" "cgmlib_mt.lib" "CgmObjectsRW_mt.lib" "freetype2_mt.lib" "zlib_mt.lib" "imm32.lib" "winmm.lib" "winspool.lib" "qtmaind.lib" "QtCored.lib" "QtGuid.lib" "QAxContainerd.lib" "QAxContainer.lib" "advapi32.lib" "odbc32.lib" "odbccp32.lib" /MANIFEST /ManifestFile:"Debug\LeoValidatorGUI.exe.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\acasella\Documents\AnteaDev\Leo\Win32\Debug\LeoValidatorGUI.pdb" /SUBSYSTEM:WINDOWS /PGD:"C:\Users\acasella\Documents\AnteaDev\Leo\Win32\Debug\LeoValidatorGUI.pgd" /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:QUEUE
/OUT:"C:\Users\acasella\Documents\AnteaDev\Leo\Win32\Debug\\LeoValidatorGUI.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Qt\4.8.2\qt-everywhere-opensource-src-4.8.2\lib" /LIBPATH:"./lib" /LIBPATH:"../LeoEngine/lib/Debug/win32" "LeoEngine.lib" "kernel32.lib" "user32.lib" "shell32.lib" "uuid.lib" "ole32.lib" "ws2_32.lib" "gdi32.lib" "comdlg32.lib" "oleaut32.lib" "libboost_filesystem-vc100-mt-sgd-1_49.lib" "cgmlib_mt.lib" "CgmObjectsRW_mt.lib" "freetype2_mt.lib" "zlib_mt.lib" "imm32.lib" "winmm.lib" "winspool.lib" "qtmaind.lib" "QtCored.lib" "QtGuid.lib" "QAxContainerd.lib" "QAxContainer.lib" "advapi32.lib" "odbc32.lib" "odbccp32.lib" /MANIFEST /ManifestFile:"Debug\LeoValidatorGUI.exe.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\acasella\Documents\AnteaDev\Leo\Win32\Debug\LeoValidatorGUI.pdb" /SUBSYSTEM:WINDOWS /PGD:"C:\Users\acasella\Documents\AnteaDev\Leo\Win32\Debug\LeoValidatorGUI.pgd" /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:QUEUE
To copy to clipboard, switch view to plain text mode
Do you need other information?
Bookmarks