Good day,

I'm tring to make a GUI that processes an api requested value. Those values are in Json format.

https://api.bitmart.com/ticker/BMX_ETH

Let's say I want to get the value of "bid_1" and make a pushbutton and a lable that changes into the value of "bid_1" when clicked.

To make a simple onpushbuttonclicked I use this

Qt Code:
  1. void MainWindow::on_pushButton_clicked()
  2. {
  3. ui->label_11->setText("Hello");
  4. }
To copy to clipboard, switch view to plain text mode 
Instead of "hello" I want a String with the value of "bid_1".

As far as I understand I have to use

Qt Code:
  1. void MainWindow::on_pushButton_clicked()
  2. {
  3. QUrl url("https://api.bitmart.com/ticker/BMX_ETH");
  4. QNetworkRequest request(url);
  5. //send request
  6. //read replied data
  7. //interpret replied data as string/Json
  8. ui->label->setText(QString::number);
  9. }
To copy to clipboard, switch view to plain text mode 
But I don't understand and would like to know how to send the request for a specific json value and convert it into a string.

In Python you can just use this.

Qt Code:
  1. def funkction():
  2. bid_data = requests.get("https://api.bitmart.com/ticker/BMX_ETH")
  3. return bid_data.json()["bid_1"]
  4.  
  5. value = float(function())
To copy to clipboard, switch view to plain text mode 
I'm looking for something simple like that since I'm not that skilled and appreciate any solution with the given example so I can transfer it to my project.