[QRegExp] Parse a double string from the QString
General and Desktop
2
Posts
2
Posters
898
Views
1
Watching
-
Hey,
you could use an expression like this:
@QString str = "RenderThread-1171 ( 785) [002] …1 6844.823501: tracing_mark_write: B|785|queue mFrameCallbackTask";
QRegExp exp("[1-9]\.[0-9]");
int i = exp.indexIn(str);
if (i > 0)
qDebug() << exp.cap();@Best regards