没做过,试试
void QWebEngineSettings::setDefaultTextEncoding(const QString &encoding)
Specifies the default text encoding system.
The value of encoding must be a string describing an encoding such as "utf-8" or "iso-8859-1". If left empty, a default value will be used. For a more extensive list of encoding names see QTextCodec.
See also defaultTextEncoding().