Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QNetworkAccessManager::setAutoDeleteReplies and QNetworkReply deletion
Forum Updated to NodeBB v4.3 + New Features

QNetworkAccessManager::setAutoDeleteReplies and QNetworkReply deletion

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 212 Views 2 Watching
  • 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 Offline
    R Offline
    ramonn334
    wrote on last edited by ramonn334
    #1

    Hello everyone
    I have a question about network reply deletion. In Qt 5.14 was added method for network manager setAutoDeleteReplies which enables or disables automatic deletion of QNetworkReplies. If this flag is true, can I remove line "relpy->deleteLater();" from my connection slots and can I read data from reply before deletion since my slots are connected to "finished" signal of network manager? Thank you for answer.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, that's the goal yes.

      The deletion happens after the finished emit signal is emitted.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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