How to know in code if a QString value is = "" or nothing?
-
How to know in code if a QString value is = "" or nothing?
@if (MyQStringName == ""){
}@
but that doen't work. -
[quote author="MathSquare" date="1359457064"]How to know in code if a QString value is = "" or nothing?
@
if (MyQStringName = ""){
}
@
but that doen't work.[/quote]
Andre's response is certainly complete.
One additional remark to your code fragment. You have an assignment '=' and not '==' in your if statement. Therefore, your if statement, when used as typed in your post, cannot work.