Open snshn opened 2 years ago
Possible solution:
static const QString js = "'undefined' != typeof document.styleSheets && 0 < document.styleSheets.length && document.styleSheets[0].addRule('::-webkit-scrollbar', 'width: 0 !important; height: 0 !important', 0);";
page()->runJavaScript(QString(js), QWebEngineScript::ApplicationWorld);
Error message: