[Interest] Setting attribute in webpage and press button ‘GO’
Sujan Dasmahapatra
sujan.dasmahapatra at gmail.com
Fri Jun 21 06:40:00 CEST 2013
I am developing a web application. I need to select an option from dropdown
in a website and press ‘GO’ button.
I am connect with the website like as below.
1. QNetworkAccessManager<http://qt-project.org/doc/QNetworkAccessManager.html>
*m_manager =
newQNetworkAccessManager<http://qt-project.org/doc/QNetworkAccessManager.html>
(this);
2. connect(m_manager,
SIGNAL(finished(QNetworkReply<http://qt-project.org/doc/QNetworkReply.html>
*)), this,SLOT(replyFinished(QNetworkReply<http://qt-project.org/doc/QNetworkReply.html>
*)));
3. m_manager->get(QNetworkRequest<http://qt-project.org/doc/QNetworkRequest.html>
(QUrl <http://qt-project.org/doc/QUrl.html>("http://www.mysite.com/")));
4.
5. m_WebPage = new QWebPage <http://qt-project.org/doc/QWebPage.html>();
6. m_WebPage->setNetworkAccessManager(m_manager);
7. QString <http://qt-project.org/doc/QString.html> attr = m_WebPage->
mainFrame()->documentElement().setAttribute("Diablo 3 (Diablo III)",
"MySelection");
but with this my application crashing. Please tell me how can set an
attribute in a webpage and press go. How can I get the attribute and the
button ‘GO’ in my application.
Any suggestions is highly appreciated. Thanks Sujan
--
Thanks & Regards
Sujan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130621/76c42018/attachment.html>
More information about the Interest
mailing list