Hm. Can't you just subclass QWebPage and overwrite that method?
Something along these lines (absolutely untested and not long thought about)
class MyWebPage: public QWebPage
{
MyWebPage([whatever is needed]) : QWebPage ([whatever is needed]) {}
return QWebPage::supportedContentTypes.removeOne("whateverYoWant");
}
}
class MyWebPage: public QWebPage
{
MyWebPage([whatever is needed]) : QWebPage ([whatever is needed]) {}
QStringList MyWebPage::supportedContentTypes() const {
return QWebPage::supportedContentTypes.removeOne("whateverYoWant");
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks