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
Class QFuture:
QFuture<T> | onCanceled(QObject *context, Function &&handler) |
QFuture<T> | onFailed(QObject *context, Function &&handler) |
QFuture<ResultType<Function>> | then(QObject *context, Function &&function) |
Class QList:
qsizetype | erase(QList<T> &list, const AT &t) |
qsizetype | erase_if(QList<T> &list, Predicate pred) |
qsizetype | removeIf(Predicate pred) |
Class QMap:
Class QMultiMap:
qsizetype | erase_if(QMultiMap<Key, T> &map, Predicate pred) |
QMultiMap::size_type | removeIf(Predicate pred) |
Class QOperatingSystemVersion:
QVersionNumber | version() const |
Class QSet:
qsizetype | erase_if(QSet<T> &set, Predicate pred) |
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 |
qsizetype | count(const QRegularExpression &re) const |
qsizetype | indexOf(const QRegularExpression &re, qsizetype from, QRegularExpressionMatch *rmatch) const |
qsizetype | lastIndexOf(const QRegularExpression &re, qsizetype from, QRegularExpressionMatch *rmatch) const |
Class QUntypedBindable:
bool | isReadOnly() const |
QUntypedPropertyBinding | takeBinding() |
Class QVarLengthArray:
qsizetype | erase(QVarLengthArray<T, Prealloc> &array, const AT &t) |
qsizetype | erase_if(QVarLengthArray<T, Prealloc> &array, Predicate pred) |
qsizetype | removeAll(const AT &t) |
qsizetype | removeIf(Predicate pred) |
bool | removeOne(const AT &t) |
New Functions in Namespaces
QFuture<T> | makeExceptionalFuture(std::exception_ptr exception) |
QFuture<T> | makeExceptionalFuture(const QException &exception) |
QFuture<T> | makeReadyFuture(const QList<T> &values) |
QFuture<void> | makeReadyFuture() |
QFuture<std::decay_t<T>> | makeReadyFuture(T &&value) |
New Global Functions
typename std::enable_if_t<std::is_unsigned_v<T>, bool> | qAddOverflow(T v1, T v2, T *result) |
auto | qHypot(Tx x, Ty y, Tz z) |
auto | qHypot(Tx x, Ty y) |
auto | qHypot(F first, Fs... rest) |
typename std::enable_if_t<std::is_unsigned_v<T> || std::is_signed_v<T>, bool> | qMulOverflow(T v1, T v2, T *result) |
typename std::enable_if_t<std::is_unsigned_v<T>, bool> | qSubOverflow(T v1, T v2, T *result) |