Easiest way to get substring from QString in Qt
Unsolved
General and Desktop
-
wrote on 22 Sept 2020, 19:52 last edited by
this is my string
<Resize animated="true" speed="4" height="200%" width="depends" />
,in this , i want to extract substrings which are enclosed in " " , in this exampletrue
,4
,200
,depends
,how to accomplish that ?
-
Hi,
One possible way is to use QRegularExpression::match or since it looks like xml, you can use QXmlStreamReader.
1/2