1

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..

MobileEvangelist
  • 2,583
  • 1
  • 25
  • 36
  • 1
    Possible duplicate (also see the comment in the answer): http://stackoverflow.com/questions/10810895/how-to-stretch-shrink-html-page-to-fit-in-qwebview-window/10813410#10813410 – Ammar Jun 18 '12 at 17:48
  • It's different point dude... My Question about how to fit html card to QWebView size. – MobileEvangelist Jun 19 '12 at 05:49

1 Answers1

2

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 .

MobileEvangelist
  • 2,583
  • 1
  • 25
  • 36