Type conversion and documentation fixes

This commit fixes the documentation issue for QML
and the type conversion problem (from QVariant to
int or QUrl).