qstring get if empty code example
Example: qstring get if empty
QDtring str = "";
if(str.size() == 0){ //if str is empty or null
}
else if(str.isEmpty()){ //if str is empty but not null
}
else if(str.isNull()){ //if str is empty and null
}
QDtring str = "";
if(str.size() == 0){ //if str is empty or null
}
else if(str.isEmpty()){ //if str is empty but not null
}
else if(str.isNull()){ //if str is empty and null
}