title: Make get request to web service, get json response and update GUI in Qt
body: <p>Trying to learn <strong>Web Services</strong> with <strong>Qt</strong> (using Qt Creator 4.1.0) and <strong>connecting data to the GUI</strong>. I have read several online examples (most notably: <a href="http://makina-corpus.com/blog/metier/archives/access-json-webservice-qt-c" rel="nofollow noreferrer">1</a>, <a href="http://ynonperek.com/course/qt/web-service.html" rel="nofollow noreferrer">2</a> and <a href="http://amin-ahmadi.com/2016/01/17/how-to-send-and-receive-json-requests-in-qt/" rel="nofollow noreferrer">3</a>) but my low coding level along with the fact that I could not find full examples that were demonstrating my needs lead me here :).</p>
  
  <p>I have created a simple example so that contains all my shortcomings:</p>
  
  <ul>
  <li><strong>make an HTTP get request to a (existing) web service</strong> every 30 seconds. </li>
  <li>The web service then responds by <strong>sending a json data object</strong> (see below for such a json example format) which we <strong>receive and parse</strong>. </li>
  <li>Then, <strong>the Qt will display all the parsed json data onto a simple GUI</strong> (see below for how such a GUI looks like.</li>
  </ul>
  
  <p><em>json data format - example</em>:</p>
  
  <pre><code>{
      "city": "London",
      "time": "16:42",
      "unit_data": 
          [
              {
                  "unit_data_id": "ABC123",
                  "unit_data_number": "21"
              }
          ]
  }
  </code></pre>
  
  <p><em>My simple Qt GUI design (made in Qt Creator)</em> displaying all the fetched parsed data:
  <a href="https://i.stack.imgur.com/rP4ne.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rP4ne.png" alt="my simple Qt GUI design"></a></p>
  
  <p>I would really appreciate any full code example that show how we can make a request to a web service and then how to fetch the json response. Finally, how to connect the GUI in Qt to display this data as soon as they are received.</p>
  
  <p>I am just starting studying this area and I am in need of a simple full code example to get me going.</p>