Returns the variant as a QByteArray if the variant has type() ByteArray or String (converted using QString::fromAscii()); otherwise returns an empty byte array.
Definition at line 2076 of file qvariant.cpp. Referenced by ClassWizard::accept(), QMimeData::data(), QSqlDriver::formatValue(), QTextDocument::loadResource(), and QMetaProperty::write(). {
return qVariantToHelper<QByteArray>(d, ByteArray, handler);
}
|