문제

I'm writing code to display html content in Qwebview, i did it by setHtml method of QWebview. I also disabled scrollbars successfully.

But i stuck with problem that how to make contents to fit to size of QWebView.

please help..

도움이 되었습니까?

해결책

I solve that problem by setting Zoom level Actually if you want to fit html content to Qwebview size use,

qWebView->setZoomFactor(0.5); set according to your htmlContent size .

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top