Skip to content
QtWS25 Call for Papers
  • 0 Votes
    2 Posts
    2k Views
    Pablo J. RoginaP

    @forca maybe you need to do some additional steps

    From QSslSocket documentation:

    Describes the peer verification modes for QSslSocket. The default mode is AutoVerifyPeer, which selects an appropriate mode depending on the socket's QSocket::SslMode.
    QSslSocket::QueryPeer 1
    QSslSocket will request a certificate from the peer, but does not require this certificate to be valid. This is useful when you want to display peer certificate details to the user without affecting the actual SSL handshake. This mode is the default for servers. Note: In Schannel this value acts the same as VerifyNone.

    And looking at this QWebEnginePage browser example, check the Downloading Favicons code snippet, which may help you accessing the underlying QSslSocket

  • Override link QUrl parsing?

    Solved Qt WebKit
    9
    0 Votes
    9 Posts
    2k Views
    K

    JS handler can be added via evaluateJavaScript, and Qt bridge used to provide actual handling via exported QObject

    I've considered adding API for C++ event hadlers, but that would require some development effort

  • 0 Votes
    1 Posts
    648 Views
    No one has replied
  • 0 Votes
    2 Posts
    885 Views
    jsulmJ

    It is not allowed to use UI related Qt classes in a different thread. They all must be used in the same thread in which the event loop is executed.
    Why do you want to use QWebPage in a different thread?
    As far as I know the UI of your application should not block while the web page is loaded.

  • 0 Votes
    3 Posts
    2k Views
    E

    @maximo the problem is that page`s url is not changing when song data changes. I solved the problem by checking song data using a timer and emiting my own signal.

  • 0 Votes
    4 Posts
    2k Views
    U

    Solved from https://forum.qt.io/topic/17139/solved-how-to-use-ssl-support-without-manualy-building-qt-libraries/6

    added CONFIG += openssl-linked
    copied from the QtSdk the (MingW) libeay32.dll and ssleay32.dll in the same folder as the executable

  • 0 Votes
    16 Posts
    7k Views
    p3c0P

    @jelicicm After some analysis I'm to unsure about the detailed working of it.
    However QXmlStreamReader can help you in extracting the links which you can probably use in your web crawler implemention as shown in that example.
    Also to implement something as simple as searching you can instead resort to QTextStream. Set the html content as byte array to it. The iterate over it, extract the line and check if the particular word exists in it using QString::contains.