How to get data from URL/.php file and display in my fields
-
object = array.at(1).toObject(); QString code = object["LeaderCode"].toString(); ui->comboBox_54->insertItem(3,code); //second qDebug()<< "InsertCode" +code;
-
object = array.at(1).toObject(); QString code = object["LeaderCode"].toString(); ui->comboBox_54->insertItem(3,code); //second qDebug()<< "InsertCode" +code;
-
@Vineela said in How to get data from URL/.php file and display in my fields:
I've done this too but got only second one so
Yes, if you do this in a loop then you need to use index (i in your case) instead of fix numbers.
-
@Vineela said in How to get data from URL/.php file and display in my fields:
I've done this too but got only second one so
Yes, if you do this in a loop then you need to use index (i in your case) instead of fix numbers.
-
@Vineela said in How to get data from URL/.php file and display in my fields:
I've done this too but got only second one so
Yes, if you do this in a loop then you need to use index (i in your case) instead of fix numbers.
-
for(int i = array.size() - 1 ; i >= 0; --i) { QJsonObject object = array.at(i).toObject(); }
-
for(int i = array.size() - 1 ; i >= 0; --i) { QJsonObject object = array.at(i).toObject(); }
-
@Vineela Not sure what you mean?
You mean if you get new data and add new entries to your combo box you then have same values several times?
In this case you need to filter new values and only add values which are not yet in the box. -
@Vineela Not sure what you mean?
You mean if you get new data and add new entries to your combo box you then have same values several times?
In this case you need to filter new values and only add values which are not yet in the box.