[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:
@
QWebSettings* settings = ui->webView->settings();
settings->setAttribute(QWebSettings::JavascriptEnabled, true);
settings->setAttribute(QWebSettings::AutoLoadImages,true);
settings->setAttribute(QWebSettings::PluginsEnabled,true);
settings->setAttribute(QWebSettings::PluginsEnabled,true);
ui->webView->load(QUrl("http://www.paypal.com"));
ui->webView->show();
@Thanks
-
What happens when you try to load it?
If it's an https issue, "this":http://www.qtcentre.org/threads/14398-Use-of-QWebView-to-browse-quot-https-quot-secure-sites might help. Not sure though.
-
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_stringThanks.
-
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. -
Thanks I'll try it
-
It Runs!
Thanks.