Results 1 to 3 of 3

Thread: What 's the system level api inside QApplication that QNetworkRequest utilize?

  1. #1
    Join Date
    Apr 2011
    Posts
    9
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default What 's the system level api inside QApplication that QNetworkRequest utilize?

    hi,

    I am new to Qt. I see when using Qt make a http request, it will use QNetworkRequest and QNetworkReply, when I step into the source code of Qt, I see QNetworkRequest inherit from QNetworkRequestPrivate, and QNetworkRequestPrivate inherit from QSharedData and also some QSharedDataPointer stuff. I guess QApplication is a main thread, and QNetworkRequest will make http call through QApplication, but what is the exact system level api QNetworkRequest utilize
    to make the http request? I step into QApplication trying to find it, but it's too complex for me.

    I hope I can get some help here, and thank you so much for your time.

    Cheers,
    Yanke

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: What 's the system level api inside QApplication that QNetworkRequest utilize?

    QNetworkAccessManager takes QNetworkRequests and returns QNetworkReplys. The components use the Qt signals and slots mechanism to advise of state changes, and this relies on the logic in QCoreApplication to function.

    Qt uses the underlying operating system's networking API to communicate. If you really want the low level details then look at the Qt source under "src/network".
    "We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
    If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.

  3. The following user says thank you to ChrisW67 for this useful post:

    huyanke (11th May 2011)

  4. #3
    Join Date
    Apr 2011
    Posts
    9
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: What 's the system level api inside QApplication that QNetworkRequest utilize?

    Thank you , Chris! Your information is very useful.

    I will pay attention to use next time!

Similar Threads

  1. How to utilize the DSS subsystem of OMAP 3530 in Qt application
    By mczhao in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 21st April 2011, 06:03
  2. QNetworkRequest Proxy
    By Ricardo_arg in forum Qt Programming
    Replies: 2
    Last Post: 12th April 2011, 18:50
  3. QNetworkRequest atribute
    By mero in forum Qt Programming
    Replies: 23
    Last Post: 12th March 2011, 23:02
  4. Replies: 4
    Last Post: 4th June 2007, 12:07
  5. Can I create a QApplication inside a DLL?
    By oob2 in forum Qt Programming
    Replies: 6
    Last Post: 1st July 2006, 10:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.