[SOLVED]How to disable Scrollbars on QWidget
-
I am using QWebView to display some html content on it I have defined the geometry of my webview that exactly fits wiht html content geometry, but when it renders the html content it draws horizontal and vertical scrollbars on it. I have given the buggy code below.
@
QWebView * webView = new QWebView();
webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);QString str = "<html><body topmargin=\"0\" leftmargin=\"0\"><embed type=\"application/x-shockwave-flash\" src=\"http://catanista.eu/flash/logo.swf\" type=\"application/x-shockwave-flash\" data=\"/flash/logo.swf\" height=\"200\" width=\"190\" PARAM=\"\" quality=\"high\" wmode=\"opaque\" swfversion=\"6.0.65.0\" expressinstall=\"Scripts/expressInstall.swf\"></body></html>"; webView->setHtml(str); webView->setWindowFlags(Qt::FramelessWindowHint); webView->setGeometry(0,0, 190,200); QSizePolicy objSize(QSizePolicy::Fixed, QSizePolicy::Fixed); webView->setSizePolicy(objSize); webView->show();
@
I tried to use SizePolicy as fixed also but not luck!!!
Please help where it is going wrong. -
Thanks Jake it worked for me...