Reputation: 1335
I am trying to hide the scrollbars on a QWebView have tried this:
webView.page()->mainFrame()->setScrollBarPolicy( Qt::Vertical, Qt::ScrollBarAlwaysOff ); webView.page()->mainFrame()->setScrollBarPolicy( Qt::Horizontal, Qt::ScrollBarAlwaysOff );
but Qt is giving me this error:
"invalid use of incomplete type 'struct QWebFrame' forward declaration of 'struct QWebFrame'
Upvotes: 2
Views: 2555
Reputation: 17124
Such an error message in Qt usually means that you have to #include <QWebFrame>
.
Upvotes: 6