Qstring Split

[Solved] Qstring Split | Perl - Code Explorer | yomemimo.com
Question : qstring split

Answered by : relieved-ray-z41m1p29c5wk

QString str = QStringLiteral("a,,b,c");
QStringList list1 = str.split(u',');
// list1: [ "a", "", "b", "c" ]
QStringList list2 = str.split(u',', Qt::SkipEmptyParts);
// list2: [ "a", "b", "c" ]

Source : https://doc.qt.io/qt-6/qstring.html#split | Last Update : Wed, 12 Oct 22

Answers related to qstring split

Code Explorer Popular Question For Perl