qemu/qobject/qdict.c
/**
 * qdict_get_try_str(): Try to get a pointer to the stored string
 * mapped by 'key'
 *
 * Return a pointer to the string mapped by 'key', if it is not present
 * in the dictionary or if the stored object is not of QString type
 * NULL will be returned.
 */
Try to get a pointer to the stored string
mapped by 'key'

Return a pointer to the string mapped by 'key', if it is not present
in the dictionary or if the stored object is not of QString type
NULL will be returned.
Try to get a pointer to the stored string mapped by ' key ' Return a pointer to the string mapped by ' key ' if it is not present in the dictionary or if the stored object is not of QString type NULL will be returned .
const char *qdict_get_try_str(const QDict *qdict, const char *key)
{
    QString *qstr = qobject_to(QString, qdict_get(qdict, key));
    return qstr ? qstring_get_str(qstr) : NULL;
}
const char * qdict_get_try_str ( const QDict * qdict , const char * key ) { QString * qstr = qobject_to ( QString , qdict_get ( qdict , key ) ) ; return qstr ? qstring_get_str ( qstr ) : NULL ; }
qdict_get_try_str(): Try to get a pointer to the stored string
 mapped by 'key'
qdict_get_try_str () : Try to get a pointer to the stored string mapped by ' key '