(settings, key, values)
Write an array of values to a QSettings instance.

    Parameters
    ----------
    settings : QSettings
    key : str
    values : List[Dict[str, Any]]

    Examples
    --------
    >>> s = QSettings("./login.ini")
    >>> QSettings_writeArray(
    ...     s, "array", [{"username": "darkhelmet", "password": "1234"}]
    ... )
Write an array of values to a QSettings instance.
Write an array of values to a QSettings instance .
def QSettings_writeArray(settings, key, values):
    # type: (QSettings, str, Sequence[Mapping[str, Any]]) -> None
    """
    Write an array of values to a QSettings instance.

    Parameters
    ----------
    settings : QSettings
    key : str
    values : List[Dict[str, Any]]

    Examples
    --------
    >>> s = QSettings("./login.ini")
    >>> QSettings_writeArray(
    ...     s, "array", [{"username": "darkhelmet", "password": "1234"}]
    ... )
    """
    settings.beginWriteArray(key, len(values))
    for i in range(len(values)):
        settings.setArrayIndex(i)
        for key_, val in values[i].items():
            settings.setValue(key_, val)
    settings.endArray()
def QSettings_writeArray ( settings , key , values ) : # type: (QSettings, str, Sequence[Mapping[str, Any]]) -> None settings . beginWriteArray ( key , len ( values ) ) for i in range ( len ( values ) ) : settings . setArrayIndex ( i ) for key_ , val in values [ i ] . items ( ) : settings . setValue ( key_ , val ) settings . endArray ( )