def floatFromQString(string):
    """
        Return a floating point conversion of a QString object.
    """
    f, ok = string.toFloat()

    if not ok:
        raise ValueError('ValueError converting : %s' % string)

    return f