Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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