Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [Solved]QWebView doesn't open paypal page
QtWS25 Last Chance

[Solved]QWebView doesn't open paypal page

Scheduled Pinned Locked Moved Qt WebKit
6 Posts 3 Posters 4.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qwertyuiopearendil
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      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.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qwertyuiopearendil
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on last edited by
          #4

          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.

          God is Real unless explicitly declared as Integer.

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qwertyuiopearendil
            wrote on last edited by
            #5

            Thanks I'll try it

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qwertyuiopearendil
              wrote on last edited by
              #6

              It Runs!
              Thanks.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved