Qt: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
Zeile 2: Zeile 2:


== Installation ==
== Installation ==
<pre>Ubuntu:
apt install libgl1-mesa-dev
</pre>
<pre>apt-get install essential cmake gdb
<pre>apt-get install essential cmake gdb
qt-unified-linux-x64-2.0.5-online.run
qt-unified-linux-x64-2.0.5-online.run

Version vom 4. Dezember 2018, 21:25 Uhr


Installation

Ubuntu:
apt install libgl1-mesa-dev
apt-get install essential cmake gdb
qt-unified-linux-x64-2.0.5-online.run
#Benutzer: qt.io <at> h*.de
ln -s /opt/Qt/5.8/gcc_64/bin /usr/lib/x86_64-linux-gnu/qt5

RegExpr

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

QRegularExpression re("(\\w+)");
QRegularExpressionMatchIterator i = re.globalMatch(line);
while(i.hasNext()){
   QRegularExpressionMatch match = i.next();
   QString word = match.captured(1);
}