Hi
I have some questions about QString.
1- I want to create a variable name (QString type) in a for loop. how can i do this. like this:
for(int i=0; i<10; ++i)
name(i) = "name i" //I need "i" in the "name i" be effected
QString name[15];
for(int i=0; i<10; ++i)
name(i) = "name i" //I need "i" in the "name i" be effected
To copy to clipboard, switch view to plain text mode
2- In a QString like str (str is a type of QString), I want to find numbers. is there any function that search number in a QString? for example:
str="Hi4Hello78good5"
str.isThereSearchNumberFunction(); // I need this returns 4,7,8,5
QString str;
str="Hi4Hello78good5"
str.isThereSearchNumberFunction(); // I need this returns 4,7,8,5
To copy to clipboard, switch view to plain text mode
Thanks for any help.
Bookmarks