kb_
kb_

Reputation: 1335

Problems hiding scrollbars in QWebView

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

Answers (1)

TonyK
TonyK

Reputation: 17124

Such an error message in Qt usually means that you have to #include <QWebFrame>.

Upvotes: 6

Related Questions