August 25, 2011

qwertyuiopearendil qwertyuiopea..
Lab Rat
91 posts

[Solved]QWebView doesn’t open paypal page

 

Hi All,
I’m trying to open Paypal page into a QWebView but I’m not able to do it.

This is my code:

  1. QWebSettings* settings = ui->webView->settings();
  2. settings->setAttribute(QWebSettings::JavascriptEnabled, true);
  3. settings->setAttribute(QWebSettings::AutoLoadImages,true);
  4. settings->setAttribute(QWebSettings::PluginsEnabled,true);
  5. settings->setAttribute(QWebSettings::PluginsEnabled,true);
  6. ui->webView->load(QUrl("http://www.paypal.com"));
  7. ui->webView->show();

Thanks

5 replies

August 25, 2011

mlong mlong
Robot Herder
1551 posts

What happens when you try to load it?

If it’s an https issue, this [qtcentre.org] might help. Not sure though.

 Signature 

Senior Software Engineer
AccuWeather Enterprise Solutions
/* My views and opinions do not necessarily reflect those of my employer.  Void where prohibited. */

August 26, 2011

qwertyuiopearendil qwertyuiopea..
Lab Rat
91 posts

I’m sorry but I’m not understanding what should I do from the link given.
When i start my app application doesn’t load page and output console is:

QSslSocket: cannot call unresolved function SSLv3_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function ERR_error_string

Thanks.

August 26, 2011

AcerExtensa AcerExtensa
Ant Farmer
667 posts

Can you open any other https websites?
If no, than:
For win: download built openssl packet for your compiler(VS or MinGW), copy libeay32.lib & ssleay32.lib into QTDIR/lib, copy dir “openssl”(with headers and so on) into QTDIR/include & copy libeay32.dll & ssleay32.dll to QTDIR/bin. Build Qt with -openssl and redistribute your program with libeay32.dll and ssleay32.dll in same folder with .exe file.

 Signature 

God is Real unless explicitly declared as Integer.

August 26, 2011

qwertyuiopearendil qwertyuiopea..
Lab Rat
91 posts

Thanks I’ll try it

August 26, 2011

qwertyuiopearendil qwertyuiopea..
Lab Rat
91 posts

It Runs!
Thanks.

 
  ‹‹ [Solved] QWebPage::WebAction add own Action to context menu      inspecting javascript / catch javascript calls ››

You must log in to post a reply. Not a member yet? Register here!