PDA

View Full Version : ActiveQt 2-dim arrays



nile.one
17th October 2007, 05:22
Is there any way in ActiveQt to pass 2-dim arrays as parameters?
(In COM it will be VARIANT type)

Qt Assistant:


COM type | Qt property
VARIANT_BOOL | bool
BSTR | QString
char, short, int, long | int
uchar, ushort, uint, ulong | uint
float, double | double
DATE | QDateTime
CY | qlonglong
OLE_COLOR | QColor
SAFEARRAY(VARIANT) | QList<QVariant>
SAFEARRAY(int), SAFEARRAY(double), SAFEARRAY(Date) | QList<QVariant>
SAFEARRAY(BYTE) | QByteArray
SAFEARRAY(BSTR) | QStringList
VARIANT | type-dependent
IFontDisp* | QFont
IPictureDisp* | QPixmap
IDispatch* | QAxObject*
IUnknown* | QAxObject*
SCODE, DECIMAL | unsupported


So if there isn't support of 2-dim arrays, how can I access COM object directly pass to it VARIANT 2-dim array?

nile.one
17th October 2007, 05:26
Actually the problem is I want to pass 2-dim array through QAxObject::dynamicCall()