PDA

View Full Version : QWebPage::createPlugin()..how to use this function??



coolmac
18th July 2008, 18:40
Hi all,
I am new to Qt and need your help.
I am trying to use
QObject * QWebPage::createPlugin ( const QString & classid, const QUrl & url, const QStringList & paramNames, const QStringList & paramValues )
i.e. I am using a object tag in my html file like

<object type="application/x-qt-plugin" classid="QPushButton" name="pushbutton" width=120>
If I want to embed,say a QPushButton in my webpage as given above,then how should I do this?
is this the correct way?
and what else do I need to include in my code apart from this object tag in the html file?
Isnt this function called directly whenever webkit detects object tag in the html file like the javascriptAlert()?

Thanks!

coolmac
21st July 2008, 20:58
Hi,
Has anyone used this function??or do you know anyother way of embedding a custom widgets into qwebpage??
Plz help!!!