Bug 53407 - [Qt] Can not resize a plugin created in QWebPage
Summary: [Qt] Can not resize a plugin created in QWebPage
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P3 Major
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2011-01-30 18:15 PST by brook hong
Modified: 2011-01-31 03:26 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brook hong 2011-01-30 18:15:21 PST
Created a QTextEdit object in webpage as below
------------------------------------------------------------
QObject * WebPage::createPlugin(const QString & classid, const QUrl & url, const QStringList & paramNames, const QStringList & paramValues)
{
    QObject *result = 0;
    if (classid == "editobject") {
        QTextEdit * edit = new QTextEdit(view());
        result = edit;
    }
    if (result)
        result->setObjectName(classid);
    return result; 
}
------------------------------------------------------------
then refer it in HTML as
------------------------------------------------------------
<object type='application/x-qt-plugin' classid='editobject' width='100%' height='30%'></object>
------------------------------------------------------------
 
The edit box shows in web page correctly, but there is no way to change height from 30% to some other value? 

For example --
alert(document.getElementById("editobject36").height); //got 72 here
document.getElementById("editobject36").height = 273;
alert(document.getElementById("editobject36").height); //still got 72 here, and the edit object haven't been resized in the webpage.
Comment 1 Benjamin Poulain 2011-01-31 03:26:11 PST
Please attach a reduction that people can compile and debug. You should not expect each devs to write a reduction.

I mark the bug as invalid for now, I will reopen it when you attach the test case.