Qt

Aus Info-Theke
Zur Navigation springen Zur Suche springen


RegExpr

QRegularExpression regExpr("(\\d+)x(\\d+)");
QRegularExpressionMatch match = regExpr.match(line);
if (match.hasMatch()){
   QString width = match.captured(1);
   QString height = match.captured(2);
}