PDA

View Full Version : Need Webkit example connecting to secure Paypal addres 4.8 ubuntu



RolandHughes
21st August 2012, 01:54
All,

I'm looking for an actual functioning snippet, not something that "might" or "should" work, but something which does work connecting to a Paypal https url. What I can find on-line doesn't show the complete configuration at one time. It's a snippet here a snippet there, but none of it is hooked together so you cannot trust it. I'm setting something up wrong because the url I have works perfectly in Mozilla and loads 100% then fails in QWebView.

Thanks in advance.

ChrisW67
22nd August 2012, 08:36
Here:


#include <QApplication>
#include <QWebView>

int main(int argc, char **argv)
{
QApplication app(argc, argv);

QWebView w;
w.setUrl(QUrl("https://www.paypal.com"));
w.show();

return app.exec();
}

Works fine on my machine: Linux/Qt 4.8.2 and Windows/Qt SDK/Qt 4.8.0 with OpenSSL libraries (http://slproweb.com/products/Win32OpenSSL.html) available.
Clearly will not work if your Qt was not built with SSL support.