I want to use switch-case in my program but the compiler gives me this error:
switch expression of type \'QString\' is illegal
How can I us
I would suggest to use if and break. This would make it near to switch case in the computation.
QString a="one" if (a.contains("one")) { break; } if (a.contains("two")) { break; }