qt - Accessing the value in Qmap with the help of its key -


i have qmap , have defined qmap<qstring,modelvariables>modelmap modelvariables structure parameters valueref,value , id. want access parameter value defined in structure. wrote following code shows error.

float hxt_val_ft04 = modelmap.value("hxt_v_ft04"); 

error: expected primary expression before '.' token.

mvariables["hxt_v_ft04"] return modelvariables object if there key matching "hxt_v_ft04". otherwise default construct object , return it. can use

mvariables["hxt_v_ft04"].value 

Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -