Thanks for the link. We were about to write a Qt bug report. Good to know it's been hanging around there since 2009. Well, we'll probably have write our own fix if they don't.
Originally Posted by
ChrisW67
Why do you think arg.vt == VT_ERROR? That seems an odd thing.
It's just an initial value. This is what QAxBase does when it calls the method:
{
....
{
.....
arg.vt = VT_ERROR;
.....
QVariantToVARIANT(qvar, arg, proptype);
if (arg.vt == VT_EMPTY || arg.vt == VT_ERROR) {
qWarning("QAxBase::setProperty: Unhandled property type %s", prop.typeName());
break;
}
int QAxBase::internalProperty(QMetaObject::Call call, int index, void **v)
{
....
case QMetaObject::WriteProperty:
{
.....
arg.vt = VT_ERROR;
.....
QVariantToVARIANT(qvar, arg, proptype);
if (arg.vt == VT_EMPTY || arg.vt == VT_ERROR) {
qWarning("QAxBase::setProperty: Unhandled property type %s", prop.typeName());
break;
}
To copy to clipboard, switch view to plain text mode
Bookmarks