New Classes and Functions in Qt 6.1 | Qt 6.4

- Qt 6.4
- What's new in Qt 6
- New Classes and Functions in Qt 6.1
- Qt 6.4.1 Reference Documentation

# New Classes and Functions in Qt 6.1

This page contains a comprehensive list of all new classes and functions introduced in Qt 6.1.

- New Classes
- New Member Functions
- New Global Functions
- New Variables

### New Classes

J
  QJniEnvironment
  QJniObject

### New Member Functions

Class QFuture:

QFuture<T> | onFailed(QObject *context, Function &&handler)
QFuture<ResultType<Function>> | then(QObject *context, Function &&function)

Class QList:

int | erase(QList<T> &, const AT &)
int | erase_if(QList<T> &, Predicate)
int | removeIf(Predicate)

Class QMap:

int | erase_if(QMap<Key, T> &, Predicate)
int | removeIf(Predicate)

Class QMetaType:

bool | hasRegisteredDataStreamOperators() const

Class QMultiMap:

int | erase_if(QMultiMap<Key, T> &, Predicate)
int | removeIf(Predicate)

Class QOperatingSystemVersion:

QVersionNumber | version() const

Class QSet:

int | erase_if(QSet<T> &, Predicate)
QSet::iterator | insert(QSet::const_iterator it, const T &value)

Class QStringView:

QStringView::const_iterator | constBegin() const
QStringView::const_iterator | constEnd() const
bool | contains(const QRegularExpression &re, QRegularExpressionMatch *rmatch) const
int | count(const QRegularExpression &) const
int | indexOf(const QRegularExpression &, int, QRegularExpressionMatch *) const
int | lastIndexOf(const QRegularExpression &, int, QRegularExpressionMatch *) const

Class QVarLengthArray:

int | erase(QVarLengthArray<T, Prealloc> &, const AT &)
int | erase_if(QVarLengthArray<T, Prealloc> &, Predicate)
int | removeAll(const AT &)
int | removeIf(Predicate)
bool | removeOne(const AT &t)

### New Global Functions

auto | qHypot(Tx x, Ty y)
auto | qHypot(F first, Fs... rest)

### New Variables

| Android10
| Android11
| AndroidOreo_MR1
| AndroidPie