Here is a fairly minimal repro with plain Qt (no PySide)
@#include <QApplication>
#include <QtWidgets>
#include <QtWebKitWidgets>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWebView view;
QString html = "<html>"
"<head><title>Vertical Text</title>\n"
"<meta http-equiv="content-type" content="text/html;charset=utf-8">\n"
"</head>\n"
"<style>\n"
"<!--\n"
".vert {\n"
"direction:ltr;\n"
"-webkit-writing-mode: vertical-rl;\n"
"font-size:20pt;\n"
"font-family: "Times New Roman", sans-serif;\n"
"}\n"
".vert p {\n"
"text-indent:2em"
"}\n"
"-->\n"
"</style>\n"
"<body class="vert">\n"
"<div>\n"
"<p>退而深惟曰:『夫詩書隱約者,欲遂其志之思也。昔西伯拘羑里,演周易;孔子戹陳蔡,作春秋;屈原放逐,著離騷;左丘失明,厥有國語;孫子臏腳,而論兵法;不韋遷蜀,世傳呂覽;韓非囚秦,說難、孤憤;詩三百篇,大抵賢聖發憤之所為作也。此人皆意有所鬱結,不得通其道也,故述往事,思來者。』(史記 · 太史公自序)</p>\n"
"</div>\n"
"</body>\n"
"</html>";
view.page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
QWebInspector inspector;
inspector.setPage(view.page());
view.setHtml(html);
inspector.show();
view.show();
return a.exec();
}@