<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi,</div>
<div>&nbsp;</div>
<div>I have tried many ways to resize a plugin either from cpp code or javascript code, but not succeed yet.</div>
<div><font face="Times New Roman">&nbsp;</font></div>
<div>For example the plugin was created as below</div>
<div>------------------------------------------------------------</div>
<div>QObject * WebPage::createPlugin(const QString &amp; classid, const QUrl &amp; url, const QStringList &amp; paramNames, const QStringList &amp; paramValues)</div>
<div>{</div>
<div>&nbsp;&nbsp;&nbsp; QObject *result = 0;</div>
<div>&nbsp;&nbsp;&nbsp; if (classid == &quot;editobject&quot;) {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QTextEdit * edit = new QTextEdit(view());</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result = edit;</div>
<div>&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;&nbsp;&nbsp; if (result)</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result-&gt;setObjectName(classid);</div>
<div>&nbsp;&nbsp;&nbsp; return result; </div>
<div>}</div>
<div>------------------------------------------------------------</div>
<div>And it was referred in HTML as</div>
<div>------------------------------------------------------------</div>
<div>&lt;object type='application/x-qt-plugin' classid='editobject' width='100%' height='30%'&gt;&lt;/object&gt;</div>
<div>------------------------------------------------------------</div>
<div><font face="Times New Roman">&nbsp;</font></div>
<div>The edit box shows in web page correctly, but there is no way to change height from 30% to some other value? </div>
<div><font face="Times New Roman">&nbsp;</font></div>
<div><font size="3" color="#1F497D"><span style="font-size:12pt;">----------------</span></font></div>
<div><font size="3" color="#1F497D"><span style="font-size:12pt;">Best Regards,</span></font></div>
<div><font size="3" color="#1F497D"><span style="font-size:12pt;">Brook Hong </span></font></div>
<div><font size="3" color="#1F497D"><span style="font-size:12pt;">&nbsp;</span></font></div>
<div><font face="Times New Roman">&nbsp;</font></div>
<div><font face="Times New Roman">&nbsp;</font></div>
</span></font>
</body>
</html>