📜  qstring get if empty - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.469000             🧑  作者: Mango

代码示例1
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
    
}