Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Interceptor in QT?

    Qt WebKit
    c++11 rest https
    2
    2
    329
    Loading More Posts
    • 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.
    • R
      Rizwan94 last edited by

      Hi,
      I got to know that in java spring framework etc. We have interceptors which help process the request & response.

      In QT, do we have anything similar that can be used.
      Currently for making REST api calls in my application i am making use of QNAM.

      Thanks

      JKSH 1 Reply Last reply Reply Quote 0
      • JKSH
        JKSH Moderators @Rizwan94 last edited by

        @Rizwan94 said in Interceptor in QT?:

        I got to know that in java spring framework etc. We have interceptors which help process the request & response.

        In QT, do we have anything similar that can be used.

        Qt uses signals and slots: https://doc.qt.io/qt-5/signalsandslots.html

        Currently for making REST api calls in my application i am making use of QNAM.

        When you call get() or post(), QNAM returns a QNetworkReply object. Connect the QNetworkReply::finished() signal to a slot to process the reply. Remember to delete the QNetworkReply when you have finished processing.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply Reply Quote 1
        • First post
          Last post