from Qt docs:
void QWebPage:
rintRequested ( QWebFrame * frame ) [signal]
you should write your own slot like
void MyWidget::onPrintRequested(QWebFrame * frame )
{
...
}
void MyWidget::onPrintRequested(QWebFrame * frame )
{
...
}
To copy to clipboard, switch view to plain text mode
and connect in following way
QObject::connect( ui
->webView
->page
() , SIGNAL( printRequested( QWebFrame * ) )
, SLOT( onPrintRequested(QWebFrame * ) )
);
QObject::connect( ui->webView->page()
, SIGNAL( printRequested( QWebFrame * ) )
, SLOT( onPrintRequested(QWebFrame * ) )
);
To copy to clipboard, switch view to plain text mode
Bookmarks