<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED]How to disable Scrollbars on QWidget]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">@<br />
QWebView * webView = new QWebView();<br />
webView-&gt;settings()-&gt;setAttribute(QWebSettings::PluginsEnabled, true);</p>
<pre><code> QString str = "&amp;lt;html&amp;gt;&amp;lt;body topmargin=\"0\" leftmargin=\"0\"&gt;&amp;lt;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\"&amp;gt;&amp;lt;/body&gt;&amp;lt;/html&amp;gt;";


 webView-&gt;setHtml(str);
 webView-&gt;setWindowFlags(Qt::FramelessWindowHint);
 webView-&gt;setGeometry(0,0, 190,200);

 QSizePolicy objSize(QSizePolicy::Fixed, QSizePolicy::Fixed);
 webView-&gt;setSizePolicy(objSize);

 webView-&gt;show();
</code></pre>
<p dir="auto">@</p>
<p dir="auto">I tried to use SizePolicy as fixed also but not luck!!!<br />
Please help where it is going wrong.</p>
]]></description><link>https://forum.qt.io/topic/15338/solved-how-to-disable-scrollbars-on-qwidget</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 19:17:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/15338.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Mar 2012 08:58:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED]How to disable Scrollbars on QWidget on Mon, 16 Apr 2012 04:59:43 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Jake it worked for me...</p>
]]></description><link>https://forum.qt.io/post/135873</link><guid isPermaLink="true">https://forum.qt.io/post/135873</guid><dc:creator><![CDATA[aashish.lg]]></dc:creator><pubDate>Mon, 16 Apr 2012 04:59:43 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED]How to disable Scrollbars on QWidget on Mon, 26 Mar 2012 14:38:33 GMT]]></title><description><![CDATA[<p dir="auto">@webView-&gt;page()-&gt;mainFrame()-&gt;setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);<br />
webView-&gt;page()-&gt;mainFrame()-&gt;setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);@</p>
<p dir="auto">Regards,<br />
Jake</p>
]]></description><link>https://forum.qt.io/post/133622</link><guid isPermaLink="true">https://forum.qt.io/post/133622</guid><dc:creator><![CDATA[Jake007]]></dc:creator><pubDate>Mon, 26 Mar 2012 14:38:33 GMT</pubDate></item></channel></rss>