def QVariant_to_string(data):
    """
    Returns given `QVariant <http://doc.qt.nokia.com/qvariant.html>`_ data as a string.

    :param data: Given data.
    :type data: object
    :return: QVariant data as string.
    :rtype: unicode
    """

    if isinstance(data, QVariant):
        data = data.toString()

    data = QString(data)
    return foundations.strings.to_string(data)
Returns given `QVariant <http://doc.qt.nokia.com/qvariant.html>`_ data as a string.

    :param data: Given data.
    :type data: object
    :return: QVariant data as string.
    :rtype: unicode