Answers for "qstring check if null or empty"

C++
1

qstring get if empty

QString 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
	
}
Posted by: Guest on June-05-2021

Code answers related to "qstring check if null or empty"

Browse Popular Code Answers by Language