code: def QVariant_to_string(data):
      
  
      if isinstance(data, QVariant):
          data = data.toString()
  
      data = QString(data)
      return foundations.strings.to_string(data)
docs: 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