18 QStringList fonts = {
"Arial",
"Helvetica",
"Times" };
22 fonts <<
"Courier" <<
"Verdana";
43 files <<
"$QTDIR/src/moc/moc.y"
44 <<
"$QTDIR/src/moc/moc.l"
45 <<
"$QTDIR/include/qconfig.h";
47 files.replaceInStrings(
"$QTDIR",
"/usr/lib/qt");
58 list <<
"Bill Murray" <<
"John Doe" <<
"Bill Clinton";
77 list <<
"alpha" <<
"beta" <<
"gamma" <<
"epsilon";
78 list.replaceInStrings(
"a",
"o");
84 list <<
"alpha" <<
"beta" <<
"gamma" <<
"epsilon";
91 list <<
"Bill Clinton" <<
"Murray, Bill";
105int main(
int argc,
char *argv[])
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
QObject * parent() const
Returns a pointer to the parent object.
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QStringList split(const QString &sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Splits the string into substrings wherever sep occurs, and returns the list of those strings.
bool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QFuture< typename std::decay_t< Sequence >::value_type > filtered(QThreadPool *pool, Sequence &&sequence, KeepFunctor &&keep)
Calls filterFunction once for each item in sequence and returns a new Sequence of kept items.
QList< QString > QStringList
Constructs a string list that contains the given string, str.
static const auto matcher
[0]
QApplication app(argc, argv)
[0]