×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    47

    QNetworkAccessManager or QHttp

    Hi,

    is better use QHttp or the more complex class NetworkAccessManager?

    Thank you.

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: QNetworkAccessManager or QHttp

    Its depends on your requirements. i will prefer QNetworkAccessManager as this classes possess a simpler, yet more powerful API. However QHttp class provides a direct interface to HTTP that allows you to have more control over the requests.

  3. #3
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Smile Re: QNetworkAccessManager or QHttp

    Quote Originally Posted by gino.rossi View Post
    Hi,

    is better use QHttp or the more complex class NetworkAccessManager?

    Thank you.
    NetworkAccessManager is a bit more powerful API..then Qhttp as somewhere their must be the requirement for Https were u can't use Qhttp...
    Regards
    Viral Parmar

  4. #4
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Re: QNetworkAccessManager or QHttp

    Quote Originally Posted by mind_freak View Post
    NetworkAccessManager is a bit more powerful API..then Qhttp as somewhere their must be the requirement for Https were u can't use Qhttp...
    Not quite sure what you mean: both support HTTPS.

    With QHttp use ConnectionMode QHttp::ConnectionModeHttps.

    With QNetworkAccessManager use https:// in the QNetworkRequest URL.

  5. #5
    Registered User
    Join Date
    Aug 2008
    Posts
    47

    Re: QNetworkAccessManager or QHttp

    ... and what about resource used?

    thank you.

  6. #6
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Re: QNetworkAccessManager or QHttp

    Quote Originally Posted by gino.rossi View Post
    ... and what about resource used?

    thank you.
    I was wondering the same thing...

    I guess the only way would be to run an app that simply creates lots of QNetworkManager objects and measure measure memory usage, then do the same for QHttp. (I guess you'd need to make requests for it to be more realistic.)

    It's easy enough to watch CPU and memory with a desktop app -- though, from what I understand, never very accurate. Not sure how best to do the same on S60 some suggestions at http://mobile.antonypranata.com/2006...using-s60-sdk/.

  7. #7
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QNetworkAccessManager or QHttp

    The documentation is clearly states for QHttp:
    This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
    http://doc.trolltech.com/4.6/qhttp.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×