suneel1310
22nd July 2010, 07:24
Hi,
I have a long string, and I want to wrap this string.
Also, I have an array which contains the width for each wrapped substring.
Number of elements in the array, are the number of lines across the string to wrapped.
Each element in the array represents the width of the line.
Example:
string :"Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code."
array : {50, 50, 40, 10}
Now I should be able to extarct the substring from the above string as below.
"Using Qt, you can write web-enabled applications o"
"nce and deploy them across desktop, mobile and emb"
"edded operating systems without rewritin"
"g the s..."
Is there any method or class in Qt which will help manipulating the text as mentioned above?
Thanks
I have a long string, and I want to wrap this string.
Also, I have an array which contains the width for each wrapped substring.
Number of elements in the array, are the number of lines across the string to wrapped.
Each element in the array represents the width of the line.
Example:
string :"Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code."
array : {50, 50, 40, 10}
Now I should be able to extarct the substring from the above string as below.
"Using Qt, you can write web-enabled applications o"
"nce and deploy them across desktop, mobile and emb"
"edded operating systems without rewritin"
"g the s..."
Is there any method or class in Qt which will help manipulating the text as mentioned above?
Thanks