QNetworkAccessManager
The easiest way to access files on the Internet is to use Qt's Network Access API. This API is centered on QNetworkAccessManager
, which handles the complete communication between your game and the Internet.
When we now develop and test a network-enabled application, it is recommended that you use a private, local network if feasible. This way, it is possible to debug both ends of the connection and errors will not expose sensitive data. If you are not familiar with setting up a web server locally on your machine, there are luckily a number of all-in-one installers that are freely available. These will automatically configure Apache2, MySQL (or MariaDB), PHP, and many more on your system. On Windows, for example, you could use XAMPP (http://www.apachefriends.org) or the Uniform Server (http://www.uniformserver.com); on Apple computers, there is MAMP (http://www.mamp.info); and on Linux you normally don't have to do anything since there is already a localhost. If not,...