How many QNetworkAccessManagers to have in an app?

  • I wonder what the implications of using multiple QNAM are? Should I have only one QNAM and give it as a ctor parameter to my own QObjects, or should my QObjects just each create their own QNAM?

  • Moderators

    hold a single instance if you can. Unless you depend on having multiple instances.
    In general you should be fine with 1 instance and pass them to your objects which need to do requests.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.