Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
\macro QT_NAMESPACE More...
Namespaces | |
namespace | _testing |
namespace | BindableWarnings |
namespace | CompareThreeWayTester |
namespace | DateTimeConstants |
namespace | detail |
namespace | Hijri |
namespace | Invoke |
namespace | Jalali |
namespace | PropertyAdaptorSlotObjectHelpers |
namespace | Roman |
namespace | Tok |
namespace | TypeNameHelper |
Typedefs | |
template<class T > | |
using | ArgumentType = typename Argument<T>::Type |
template<class T , class MapFunctor > | |
using | MapResultType = typename MapResult<T, MapFunctor>::Type |
template<class Callable , class Sequence > | |
using | isInvocable = std::is_invocable<Callable, typename std::decay_t<Sequence>::value_type> |
using | CompareUnderlyingType = qint8 |
template<typename T > | |
using | if_volatile = std::enable_if_t<std::is_volatile_v<T>, bool> |
using | NonConstMetaTypeInterface = QMetaTypeInterface |
template<typename T > | |
using | IsRealGadget = std::bool_constant<IsGadgetHelper<T>::IsRealGadget> |
template<typename T > | |
using | qRemovePointerLike_t = typename qRemovePointerLike<T>::type |
template<typename Func > | |
using | FunctionStorage = QtPrivate::CompactStorage<Func> |
template<class T > | |
using | InvokeGenSeq = typename T::Type |
template<int N, class S1 , class S2 > | |
using | ConcatSeq = InvokeGenSeq<ConcatSeqImpl<N, S1, S2>> |
template<int N> | |
using | makeIndexSequence = InvokeGenSeq<GenSeq<N>> |
using | SlotObjUniquePtr |
template<typename T > | |
using | IsUntypedPropertyData = std::enable_if_t<std::is_base_of_v<QUntypedPropertyData, T>, bool> |
using | QPropertyObserverCallback = void (*)(QUntypedPropertyData *) |
using | QPropertyBindingWrapper = bool(*)(QMetaType, QUntypedPropertyData *dataPtr, QPropertyBindingFunction) |
template<typename Tag , typename Result > | |
using | wrapped_t = typename wrapped<Tag, Result>::type |
template<typename Char > | |
using | IsCompatibleChar32TypeHelper |
template<typename Char > | |
using | IsCompatibleChar32Type = IsCompatibleChar32TypeHelper<q20::remove_cvref_t<Char>> |
template<typename Char > | |
using | IsCompatibleChar8TypeHelper |
template<typename Char > | |
using | IsCompatibleChar8Type = IsCompatibleChar8TypeHelper<q20::remove_cvref_t<Char>> |
template<typename Pointer > | |
using | IsCompatiblePointer8 = IsCompatiblePointer8Helper<q20::remove_cvref_t<Pointer>> |
template<class T > | |
using | EnableForVoid = std::enable_if_t<std::is_same_v<T, void>> |
template<class T > | |
using | EnableForNonVoid = std::enable_if_t<!std::is_same_v<T, void>> |
template<class Arg , class... Args> | |
using | FilterLastPrivateSignalArg |
template<class Class , class Callable > | |
using | EnableIfInvocable |
template<class T > | |
using | isQFuture = std::bool_constant<isQFutureV<T>> |
template<class... Args> | |
using | NotEmpty = std::bool_constant<(sizeof...(Args) > 0)> |
template<class Sequence > | |
using | IsRandomAccessible |
template<class Sequence > | |
using | HasInputIterator |
template<class Iterator > | |
using | IsForwardIterable |
template<class T , class U > | |
using | EnableIfSameOrConvertible = std::enable_if_t<std::is_convertible_v<T, U>> |
template<typename Iterator > | |
using | IfIsInputIterator |
template<typename Iterator > | |
using | IfIsForwardIterator |
template<typename Iterator > | |
using | IfIsNotForwardIterator |
template<typename Iterator > | |
using | KeyAndValueTest |
template<typename Iterator > | |
using | FirstAndSecondTest |
template<typename Iterator > | |
using | IfAssociativeIteratorHasKeyAndValue |
template<typename Iterator > | |
using | IfAssociativeIteratorHasFirstAndSecond |
template<typename Iterator > | |
using | MoveBackwardsTest |
template<typename Iterator > | |
using | IfIteratorCanMoveBackwards |
template<typename T , typename U > | |
using | IfIsNotSame |
template<typename T , typename U > | |
using | IfIsNotConvertible = typename std::enable_if<!std::is_convertible<T, U>::value, bool>::type |
template<typename Object , typename Tag = void> | |
using | CompactStorage |
template<typename... T> | |
using | QHashMultiReturnType |
template<typename ManualType , typename... Types> | |
using | ArrayType |
Enumerations | |
enum class | Ordering : CompareUnderlyingType { Equal = 0 , Equivalent = Equal , Less = -1 , Greater = 1 } |
enum class | Uncomparable : CompareUnderlyingType { Unordered } |
enum class | LegacyUncomparable : CompareUnderlyingType { Unordered = -127 } |
Functions | |
template<typename T , typename = decltype(std::declval<T>().detach())> | |
void | warnIfContainerIsNotShared (int) |
template<typename T > | |
QForeachContainer< typename std::decay< T >::type > | qMakeForeachContainer (T &&t) |
bool | shouldLogToStderr () |
Returns true if logging stderr should be ensured. | |
template<typename T > | |
constexpr const T & | min (const T &a, const T &b) |
template<typename T , QtPrivate::if_volatile< T > = true> | |
auto | volatilePreIncrement (T &x) |
template<typename T , QtPrivate::if_volatile< T > = true> | |
auto | volatilePreDecrement (T &x) |
template<typename SequentialContainer > | |
QDebug | printSequentialContainer (QDebug debug, const char *which, const SequentialContainer &c) |
template<typename AssociativeContainer > | |
QDebug | printAssociativeContainer (QDebug debug, const char *which, const AssociativeContainer &c) |
template<typename T > | |
T | legacyEnumValueFromModelData (const QVariant &data) |
template<typename T > | |
T | legacyFlagValueFromModelData (const QVariant &data) |
Q_AUTOTEST_EXPORT QBindingStatus * | getBindingStatus (QBindingStatusAccessToken) |
Q_LOGGING_CATEGORY (lcEventDispatcher, "qt.eventdispatcher") | |
Q_LOGGING_CATEGORY (lcEventDispatcherTimers, "qt.eventdispatcher.timers") | |
constexpr quint32 | qConstexprNextPowerOfTwo (quint32 v) |
constexpr quint64 | qConstexprNextPowerOfTwo (quint64 v) |
constexpr quint32 | qConstexprNextPowerOfTwo (qint32 v) |
constexpr quint64 | qConstexprNextPowerOfTwo (qint64 v) |
template<typename T > | |
constexpr const QMetaTypeInterface * | qMetaTypeInterfaceForType () |
Q_CORE_EXPORT bool | isBuiltinType (const QByteArray &type) |
template<typename From , typename To > | |
To | convertImplicit (const From &from) |
This template is used for implicit conversion from type From to type To. | |
template<typename T > | |
char | qt_getEnumMetaObject (const T &) |
template<typename X > | |
static constexpr bool | checkTypeIsSuitableForMetaType () |
constexpr int | qNormalizeType (const char *begin, const char *end, char *output) |
template<typename Unique , typename TypeCompletePair > | |
constexpr const QMetaTypeInterface * | qTryMetaTypeInterfaceForType () |
QObject & | deref_for_methodcall (QObject &o) |
QObject & | deref_for_methodcall (QObject *o) |
const QObject * | getQObject (const QObjectPrivate *d) |
template<typename ObjPrivate > | |
void | assertObjectType (QObjectPrivate *d) |
template<typename... Args> | |
auto | invokeMethodHelper (QMetaMethodReturnArgument r, const Args &... arguments) |
template<typename Obj > | |
void | assertObjectType (QObject *o) |
template<typename Prototype , typename Functor > | |
constexpr std::enable_if_t<!std::disjunction_v< std::is_convertible< Prototype, const char * >, std::is_same< std::decay_t< Prototype >, QMetaMethod >, std::is_convertible< Functor, const char * >, std::is_same< std::decay_t< Functor >, QMetaMethod > >, int > | countMatchingArguments () |
SlotObjUniquePtr | copy (const SlotObjUniquePtr &other) noexcept |
template<typename Prototype , typename Functor > | |
static constexpr std::enable_if_t< QtPrivate::countMatchingArguments< Prototype, Functor >() >=0, QtPrivate::QSlotObjectBase * > | makeCallableObject (Functor &&func) |
template<typename Prototype , typename Functor > | |
constexpr bool | AssertCompatibleFunctions () |
void | initBindingStatusThreadId () |
BindingEvaluationState * | suspendCurrentBindingStatus () |
void | restoreBindingStatus (BindingEvaluationState *status) |
bool | isAnyBindingEvaluating () |
bool | isPropertyInBindingWrapper (const QUntypedPropertyData *property) |
template<typename Container > | |
QDataStream & | readArrayBasedContainer (QDataStream &s, Container &c) |
template<typename Container > | |
QDataStream & | readListBasedContainer (QDataStream &s, Container &c) |
template<typename Container > | |
QDataStream & | readAssociativeContainer (QDataStream &s, Container &c) |
template<typename Container > | |
QDataStream & | writeSequentialContainer (QDataStream &s, const Container &c) |
template<typename Container > | |
QDataStream & | writeAssociativeContainer (QDataStream &s, const Container &c) |
template<typename Container > | |
QDataStream & | writeAssociativeMultiContainer (QDataStream &s, const Container &c) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | startsWith (QByteArrayView haystack, QByteArrayView needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | endsWith (QByteArrayView haystack, QByteArrayView needle) noexcept |
qsizetype | findByteArray (QByteArrayView haystack, qsizetype from, char needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | findByteArray (QByteArrayView haystack, qsizetype from, QByteArrayView needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | lastIndexOf (QByteArrayView haystack, qsizetype from, char needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | lastIndexOf (QByteArrayView haystack, qsizetype from, QByteArrayView needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | count (QByteArrayView haystack, QByteArrayView needle) noexcept |
Q_CORE_EXPORT int | compareMemory (QByteArrayView lhs, QByteArrayView rhs) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION QByteArrayView | trimmed (QByteArrayView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | isValidUtf8 (QByteArrayView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< double > | toDouble (QByteArrayView a) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< float > | toFloat (QByteArrayView a) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< qlonglong > | toSignedInteger (QByteArrayView data, int base) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< qulonglong > | toUnsignedInteger (QByteArrayView data, int base) |
template<typename T , typename ByteArrayView , typename = std::enable_if_t<std::is_same_v<ByteArrayView, QByteArrayView>>> | |
static T | toIntegral (ByteArrayView data, bool *ok, int base) |
QByteArray Q_CORE_EXPORT | QByteArrayList_join (const QByteArrayList *that, const char *sep, qsizetype len) |
template<typename Char > | |
static constexpr qsizetype | lengthHelperPointer (const Char *data) noexcept |
template<const char * Set, int ForcedLowest = -1> | |
constexpr auto | makeCharacterSetMatch () |
const QString & | asString (const QString &s) |
QString && | asString (QString &&s) |
Q_CORE_EXPORT QString | argToQString (QStringView pattern, size_t n, const ArgBase **args) |
Q_CORE_EXPORT QString | argToQString (QLatin1StringView pattern, size_t n, const ArgBase **args) |
template<typename StringView , typename... Args> | |
Q_ALWAYS_INLINE QString | argToQStringDispatch (StringView pattern, const Args &...args) |
QStringViewArg | qStringLikeToArg (const QString &s) noexcept |
constexpr QStringViewArg | qStringLikeToArg (QStringView s) noexcept |
QStringViewArg | qStringLikeToArg (const QChar &c) noexcept |
constexpr QLatin1StringArg | qStringLikeToArg (QLatin1StringView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | qustrlen (const char16_t *str) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | qustrnlen (const char16_t *str, qsizetype maxlen) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION const char16_t * | qustrchr (QStringView str, char16_t ch) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION const char16_t * | qustrcasechr (QStringView str, char16_t ch) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QStringView lhs, QStringView rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QStringView lhs, QLatin1StringView rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QStringView lhs, QBasicUtf8StringView< false > rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QLatin1StringView lhs, QStringView rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QLatin1StringView lhs, QLatin1StringView rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QLatin1StringView lhs, QBasicUtf8StringView< false > rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QBasicUtf8StringView< false > lhs, QStringView rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QBasicUtf8StringView< false > lhs, QLatin1StringView rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int | compareStrings (QBasicUtf8StringView< false > lhs, QBasicUtf8StringView< false > rhs, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QStringView lhs, QStringView rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QStringView lhs, QLatin1StringView rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QStringView lhs, QBasicUtf8StringView< false > rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QLatin1StringView lhs, QStringView rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QLatin1StringView lhs, QLatin1StringView rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QLatin1StringView lhs, QBasicUtf8StringView< false > rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QBasicUtf8StringView< false > lhs, QStringView rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QBasicUtf8StringView< false > lhs, QLatin1StringView rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | equalStrings (QBasicUtf8StringView< false > lhs, QBasicUtf8StringView< false > rhs) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | startsWith (QStringView haystack, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | startsWith (QStringView haystack, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | startsWith (QLatin1StringView haystack, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | startsWith (QLatin1StringView haystack, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | endsWith (QStringView haystack, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | endsWith (QStringView haystack, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | endsWith (QLatin1StringView haystack, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | endsWith (QLatin1StringView haystack, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | findStringInsensitive (QStringView haystack, qsizetype from, char16_t needle) noexcept |
qsizetype | findString (QStringView str, qsizetype from, QChar needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | findString (QStringView haystack, qsizetype from, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | findString (QStringView haystack, qsizetype from, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | findString (QLatin1StringView haystack, qsizetype from, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | findString (QLatin1StringView haystack, qsizetype from, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | lastIndexOf (QStringView haystack, qsizetype from, char16_t needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | lastIndexOf (QStringView haystack, qsizetype from, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | lastIndexOf (QStringView haystack, qsizetype from, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | lastIndexOf (QLatin1StringView haystack, qsizetype from, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | lastIndexOf (QLatin1StringView haystack, qsizetype from, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION QStringView | trimmed (QStringView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION QLatin1StringView | trimmed (QLatin1StringView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | isLower (QStringView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | isUpper (QStringView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | count (QStringView haystack, QChar needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | count (QStringView haystack, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | count (QStringView haystack, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | count (QLatin1StringView haystack, QLatin1StringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | count (QLatin1StringView haystack, QStringView needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | count (QLatin1StringView haystack, QChar needle, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
Q_CORE_EXPORT QString | convertToQString (QAnyStringView s) |
Q_CORE_EXPORT QByteArray | convertToLatin1 (QStringView str) |
Q_CORE_EXPORT QByteArray | convertToUtf8 (QStringView str) |
Q_CORE_EXPORT QByteArray | convertToLocal8Bit (QStringView str) |
Q_CORE_EXPORT QList< uint > | convertToUcs4 (QStringView str) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | isRightToLeft (QStringView string) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | isAscii (QLatin1StringView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | isAscii (QStringView s) noexcept |
constexpr bool | isLatin1 (QLatin1StringView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | isLatin1 (QStringView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | isValidUtf16 (QStringView s) noexcept |
template<typename Char , size_t N> | |
constexpr Q_ALWAYS_INLINE qsizetype | lengthHelperContainerLoop (const Char(&str)[N]) |
template<typename Char , size_t N> | |
constexpr Q_ALWAYS_INLINE std::enable_if_t< sizeof(Char)==sizeof(char16_t), qsizetype > | lengthHelperContainer (const Char(&str)[N]) |
qsizetype | qstrnlen_helper (const char *str, size_t maxlen) |
template<typename Char , size_t N> | |
constexpr std::enable_if_t< sizeof(Char)==1, qsizetype > | lengthHelperContainer (const Char(&str)[N]) |
template<typename Container > | |
constexpr qsizetype | lengthHelperContainer (const Container &c) noexcept |
void Q_CORE_EXPORT | QStringList_sort (QStringList *that, Qt::CaseSensitivity cs) |
qsizetype Q_CORE_EXPORT | QStringList_removeDuplicates (QStringList *that) |
QString Q_CORE_EXPORT | QStringList_join (const QStringList *that, QStringView sep) |
QString Q_CORE_EXPORT | QStringList_join (const QStringList *that, const QChar *sep, qsizetype seplen) |
Q_CORE_EXPORT QString | QStringList_join (const QStringList &list, QLatin1StringView sep) |
QStringList Q_CORE_EXPORT | QStringList_filter (const QStringList *that, QStringView str, Qt::CaseSensitivity cs) |
Q_CORE_EXPORT QStringList | QStringList_filter (const QStringList &that, QLatin1StringView needle, Qt::CaseSensitivity cs) |
Q_CORE_EXPORT QStringList | QStringList_filter (const QStringList &that, const QStringMatcher &matcher) |
bool Q_CORE_EXPORT | QStringList_contains (const QStringList *that, QStringView str, Qt::CaseSensitivity cs) |
bool Q_CORE_EXPORT | QStringList_contains (const QStringList *that, QLatin1StringView str, Qt::CaseSensitivity cs) |
void Q_CORE_EXPORT | QStringList_replaceInStrings (QStringList *that, QStringView before, QStringView after, Qt::CaseSensitivity cs) |
qsizetype Q_CORE_EXPORT | QStringList_indexOf (const QStringList &that, QStringView str, qsizetype from, Qt::CaseSensitivity cs) |
qsizetype Q_CORE_EXPORT | QStringList_indexOf (const QStringList &that, QLatin1StringView str, qsizetype from, Qt::CaseSensitivity cs) |
Q_CORE_EXPORT qsizetype | QStringList_lastIndexOf (const QStringList &that, QStringView str, qsizetype from, Qt::CaseSensitivity cs) |
Q_CORE_EXPORT qsizetype | QStringList_lastIndexOf (const QStringList &that, QLatin1StringView str, qsizetype from, Qt::CaseSensitivity cs) |
template<qsizetype N> | |
static Q_ALWAYS_INLINE QStringPrivate | qMakeStringPrivate (const char16_t(&literal)[N]) |
template<class Tuple , std::size_t... I> | |
auto | cutTuple (Tuple &&t, std::index_sequence< I... >) |
template<class Arg , class... Args> | |
auto | createTuple (Arg &&arg, Args &&... args) |
template<typename Continuation > | |
void | watchContinuation (const QObject *context, Continuation &&c, QFutureInterfaceBase &fi) |
template<class T > | |
void | fulfillPromise (QPromise< T > &promise, QFuture< T > &future) |
template<class T , class Function > | |
void | fulfillPromise (QPromise< T > &promise, Function &&handler) |
template<typename ValueType > | |
QFuture< ValueType > | makeReadyRangeFutureImpl (const QList< ValueType > &values) |
template<qsizetype Index, typename ContextType , typename... Ts> | |
void | addCompletionHandlersImpl (const std::shared_ptr< ContextType > &context, const std::tuple< Ts... > &t) |
template<typename ContextType , typename... Ts> | |
void | addCompletionHandlers (const std::shared_ptr< ContextType > &context, const std::tuple< Ts... > &t) |
template<typename OutputSequence , typename InputIt , typename ValueType > | |
QFuture< OutputSequence > | whenAllImpl (InputIt first, InputIt last) |
template<typename OutputSequence , typename... Futures> | |
QFuture< OutputSequence > | whenAllImpl (Futures &&... futures) |
template<typename InputIt , typename ValueType > | |
QFuture< QtFuture::WhenAnyResult< typename Future< ValueType >::type > > | whenAnyImpl (InputIt first, InputIt last) |
template<typename... Futures> | |
QFuture< std::variant< std::decay_t< Futures >... > > | whenAnyImpl (Futures &&... futures) |
void Q_CORE_EXPORT | watchContinuationImpl (const QObject *context, QtPrivate::QSlotObjectBase *slotObj, QFutureInterfaceBase &fi) |
static ResultIteratorBase | findResult (const QMap< int, ResultItem > &store, int index) |
constexpr uint | qConstexprCountTrailingZeroBits (quint32 v) noexcept |
constexpr uint | qConstexprCountTrailingZeroBits (quint64 v) noexcept |
constexpr uint | qConstexprCountTrailingZeroBits (quint8 v) noexcept |
constexpr uint | qConstexprCountTrailingZeroBits (quint16 v) noexcept |
constexpr uint | qConstexprCountTrailingZeroBits (unsigned long v) noexcept |
template<typename T , typename Cmp = std::less<>> | |
static constexpr bool | q_points_into_range (const T *p, const T *b, const T *e, Cmp less={}) noexcept |
template<typename C , typename T > | |
static constexpr bool | q_points_into_range (const T &p, const C &c) noexcept |
template<typename T , typename N > | |
QT_WARNING_PUSH void | q_uninitialized_move_if_noexcept_n (T *first, N n, T *out) |
template<typename T , typename N > | |
void | q_uninitialized_relocate_n (T *first, N n, T *out) |
template<typename T > | |
QT_WARNING_POP void | q_rotate (T *first, T *mid, T *last) |
template<typename T , typename Predicate > | |
T * | q_uninitialized_remove_copy_if (T *first, T *last, T *out, Predicate &pred) |
template<typename iterator , typename N > | |
void | q_relocate_overlap_n_left_move (iterator first, N n, iterator d_first) |
template<typename T , typename N > | |
void | q_relocate_overlap_n (T *first, N n, T *d_first) |
template<typename Container , typename InputIterator , IfIsNotForwardIterator< InputIterator > = true> | |
void | reserveIfForwardIterator (Container *, InputIterator, InputIterator) |
template<typename Container , typename ForwardIterator , IfIsForwardIterator< ForwardIterator > = true> | |
void | reserveIfForwardIterator (Container *c, ForwardIterator f, ForwardIterator l) |
template<typename Container , typename Predicate > | |
auto | sequential_erase_if (Container &c, Predicate &pred) |
template<typename Container , typename T > | |
auto | sequential_erase (Container &c, const T &t) |
template<typename Container , typename T > | |
auto | sequential_erase_with_copy (Container &c, const T &t) |
template<typename Container , typename T > | |
auto | sequential_erase_one (Container &c, const T &t) |
template<typename T , typename Predicate > | |
qsizetype | qset_erase_if (QSet< T > &set, Predicate &pred) |
template<typename Container , typename Predicate > | |
auto | associative_erase_if (Container &c, Predicate &pred) |
template<typename Map > | |
QKeyValueRange (Map &) -> QKeyValueRange< Map & > | |
template<typename Map , std::enable_if_t<!std::is_reference_v< Map >, bool > = false> | |
QKeyValueRange (Map &&) -> QKeyValueRange< std::remove_const_t< Map > > | |
template<typename V , typename U > | |
qsizetype | indexOf (const QList< V > &list, const U &u, qsizetype from) noexcept |
template<typename V , typename U > | |
qsizetype | lastIndexOf (const QList< V > &list, const U &u, qsizetype from) noexcept |
template<typename T , typename U > | |
qsizetype | indexOf (const QList< T > &vector, const U &u, qsizetype from) noexcept |
template<typename T , typename U > | |
qsizetype | lastIndexOf (const QList< T > &vector, const U &u, qsizetype from) noexcept |
template<typename T > | |
constexpr T && | Forward (typename std::remove_reference< T >::type &t) noexcept |
template<typename T > | |
constexpr T && | Forward (typename std::remove_reference< T >::type &&t) noexcept |
template<typename ... Right, typename ... Left> | |
constexpr QuickSortData< Right..., Left... > | quickSortConcat (QuickSortData< Right... >, QuickSortData< Left... >) noexcept |
template<typename ... Right, typename Middle , typename ... Left> | |
constexpr QuickSortData< Right..., Middle, Left... > | quickSortConcat (QuickSortData< Right... >, QuickSortData< Middle >, QuickSortData< Left... >) noexcept |
template<size_t Highest> | |
constexpr auto | minifyValue () |
template<size_t StringLength, typename Extractor , typename... T> | |
constexpr auto | makeStaticString (Extractor extract, const T &... entries) |
template<typename StringExtractor , typename... T> | |
constexpr auto | makeOffsetStringArray (StringExtractor extractString, const T &... entries) |
template<typename T > | |
constexpr void | swap (QExplicitlySharedDataPointerV2< T > &lhs, QExplicitlySharedDataPointerV2< T > &rhs) noexcept |
constexpr quint8 | nextByteSize (quint8 bits) |
QPixelFormat | QPixelFormat_createYUV (QPixelFormat::YUVLayout yuvLayout, uchar alphaSize, QPixelFormat::AlphaUsage alphaUsage, QPixelFormat::AlphaPosition alphaPosition, QPixelFormat::AlphaPremultiplied premultiplied, QPixelFormat::TypeInterpretation typeInterpretation, QPixelFormat::ByteOrder byteOrder) |
static bool | intersect_rect (const QGraphicsItem *item, const QRectF &exposeRect, Qt::ItemSelectionMode mode, const QTransform &deviceTransform, const void *intersectData) |
static bool | intersect_point (const QGraphicsItem *item, const QRectF &exposeRect, Qt::ItemSelectionMode mode, const QTransform &deviceTransform, const void *intersectData) |
static bool | intersect_path (const QGraphicsItem *item, const QRectF &exposeRect, Qt::ItemSelectionMode mode, const QTransform &deviceTransform, const void *intersectData) |
static size_t | roundUpToMultipleOf (size_t divisor, size_t x) |
QString | asString (const QHashedCStringRef &ref) |
QString | asString (const QHashedStringRef &ref) |
template<typename... Args> | |
constexpr int | channelConfig (Args... values) |
Variables | |
template<class T > | |
constexpr bool | IsIterableValue = IsIterable<T>::value |
template<class T > | |
constexpr bool | IsDereferenceableValue = IsDereferenceable<T>::value |
template<class T , class Enable = void> | |
constexpr bool | hasCallOperator_v = false |
template<class T , class Enable = void> | |
constexpr bool | isIterator_v = false |
template<class InitialValueType , class ResultType > | |
constexpr bool | isInitialValueCompatible_v |
template<typename T > | |
constexpr bool | IsIntegralType_v |
template<typename T > | |
constexpr bool | IsFloatType_v = std::is_floating_point_v<T> |
template<typename T > | |
constexpr bool | qIsRelocatable = std::is_trivially_copyable_v<T> && std::is_trivially_destructible_v<T> |
template<typename T > | |
constexpr bool | qIsValueInitializationBitwiseZero |
template<typename T > | |
constexpr bool | IsQmlListType = false |
template<typename T , bool = std::is_enum<T>::value> | |
constexpr bool | IsUnsignedEnum = false |
template<typename T > | |
constexpr bool | IsUnsignedEnum< T, true > = !std::is_signed_v<std::underlying_type_t<T>> |
template<typename Functor , typename... Args> | |
constexpr bool | HasCallOperatorAcceptingArgs_v = HasCallOperatorAcceptingArgs<Functor, Args...>::value |
template<typename Callable , typename PropertyType = MSVCWorkAround> | |
constexpr BindingFunctionVTable | bindingFunctionVTable = BindingFunctionVTable::createFor<Callable, PropertyType>() |
template<> | |
constexpr bool | qIsRelocatable< QVariant > = true |
constexpr char | ascii_space_chars [] |
template<class T , class Enable = void> | |
constexpr bool | IsPrivateSignalArg = false |
template<class T > | |
constexpr bool | isQFutureV = false |
template<class T > | |
constexpr bool | isQFutureV< QFuture< T > > = true |
template<typename T > | |
constexpr bool | is_function_pointer_v |
template<typename T > | |
constexpr bool | is_std_function_v = false |
static constexpr quintptr | IdealMutexAlignment |
constexpr size_t | MaxPrimitiveAlignment = alignof(std::max_align_t) |
constexpr qsizetype | MaxAllocSize = (std::numeric_limits<qsizetype>::max)() |
template<typename R , typename F , typename ... ArgTypes> | |
constexpr bool | is_invocable_explicit_r_v |
template<typename T > | |
constexpr bool | QNothrowHashableHelper_v = noexcept(qHash(std::declval<const T &>())) |
template<typename T > | |
constexpr bool | QNothrowHashable_v = QNothrowHashable<T>::value |
template<typename T > | |
constexpr bool | IsQmlListType< QQmlListProperty< T > > = true |
template<QMetaType::Type type> | |
constexpr BindingFunctionVTable | bindingFunctionVTableForQQmlPropertyBinding |
\macro QT_NAMESPACE
If this macro is defined to ns
all Qt classes are put in a namespace called ns
. Also, moc will output code putting metaobjects etc. into namespace ns
.
\macro QT_PREPEND_NAMESPACE(identifier)
This macro qualifies identifier with the full namespace. It expands to {::QT_NAMESPACE::identifier} if
QT_NAMESPACE
is defined and only identifier otherwise.
\macro QT_USE_NAMESPACE
This macro expands to using QT_NAMESPACE if QT_NAMESPACE is defined and nothing otherwise.
\macro QT_BEGIN_NAMESPACE
This macro expands to
if QT_NAMESPACE
is defined and nothing otherwise. If should always appear in the file-level scope and be followed by QT_END_NAMESPACE
at the same logical level with respect to preprocessor conditionals in the same file.
As a rule of thumb, QT_BEGIN_NAMESPACE
should appear in all Qt header and Qt source files after the last {#include} line and before the first declaration.
If that rule can't be followed because, e.g., {#include} lines and declarations are wildly mixed, place
QT_BEGIN_NAMESPACE
before the first declaration and wrap the {#include} lines in
QT_BEGIN_INCLUDE_NAMESPACE
and QT_END_INCLUDE_NAMESPACE
.
When using the QT_NAMESPACE
feature in user code (e.g., when building plugins statically linked to Qt) where the user code is not intended to go into the QT_NAMESPACE
namespace, all forward declarations of Qt classes need to be wrapped in QT_BEGIN_NAMESPACE
and QT_END_NAMESPACE
. After that, a QT_USE_NAMESPACE
should follow. No further changes should be needed.
\macro QT_END_NAMESPACE
This macro expands to
if QT_NAMESPACE
is defined and nothing otherwise. It is used to cancel the effect of QT_BEGIN_NAMESPACE
.
If a source file ends with a {#include} directive that includes a moc file,
QT_END_NAMESPACE
should be placed before that {#include}.
\macro QT_BEGIN_INCLUDE_NAMESPACE
This macro is equivalent to QT_END_NAMESPACE
. It only serves as syntactic sugar and is intended to be used before #include lines within a QT_BEGIN_NAMESPACE
... QT_END_NAMESPACE
block.
\macro QT_END_INCLUDE_NAMESPACE
This macro is equivalent to QT_BEGIN_NAMESPACE
. It only serves as syntactic sugar and is intended to be used after #include lines within a QT_BEGIN_NAMESPACE
... QT_END_NAMESPACE
block.
\macro QT_BEGIN_MOC_NAMESPACE
This macro is output by moc at the beginning of moc files. It is equivalent to QT_USE_NAMESPACE
.
\macro QT_END_MOC_NAMESPACE
This macro is output by moc at the beginning of moc files. It expands to nothing.
\macro qMove(x) >
Use std::move
instead.
It expands to "std::move".
qMove takes an rvalue reference to its parameter x, and converts it to an xvalue.
\macro QT_ENABLE_STRICT_MODE_UP_TO >
Defining this macro will disable a number of Qt APIs that are deemed suboptimal or dangerous.
This macro's value must be set to a Qt version, using \l{QT_VERSION_CHECK}'s encoding. For instance, in order to set it to Qt 6.6, define {QT_ENABLE_STRICT_MODE_UP_TO=0x060600}. This will disable only the APIs introduced in versions up to (and including) the specified Qt version.
If the \l QT_DISABLE_DEPRECATED_UP_TO macro is not defined, then QT_ENABLE_STRICT_MODE_UP_TO will define it as well, to the same value.
This macro should always be set to the minimum Qt version that your project wants to support.
The APIs disabled by this macro are listed in the table below, together with the minimum value to use in order to disable them.
\table \header
{const char *} (see \l{QT_NO_CAST_FROM_ASCII}) \row
{const char *} / QByteArray (see \l{QT_NO_CAST_TO_ASCII}) \row
{const char *} (see \l{QT_NO_CAST_FROM_BYTEARRAY}) \row
{open()} functions marked
{[[nodiscard]]} (see \l{QT_USE_NODISCARD_FILE_OPEN}) \endtableMoreover, individual APIs may also get disabled as part of the setting of QT_DISABLE_DEPRECATED_UP_TO. Please refer to each class' documentation for more details.
\qmltype ShaderEffect \instantiates QQuickShaderEffect \inqmlmodule QtQuick \inherits Item \ingroup qtquick-effects \brief Applies custom shaders to a rectangle. The ShaderEffect type applies a custom \l{vertexShader}{vertex} and \l{fragmentShader}{fragment (pixel)} shader to a rectangle. It allows adding effects such as drop shadow, blur, colorize and page curl into the QML scene. \note Depending on the Qt Quick scenegraph backend in use, the ShaderEffect type may not be supported. For example, with the \c software backend effects will not be rendered at all. \section1 Shaders In Qt 5, effects were provided in form of GLSL (OpenGL Shading Language) source code, often embedded as strings into QML. Starting with Qt 5.8, referring to files, either local ones or in the Qt resource system, became possible as well. In Qt 6, Qt Quick has support for graphics APIs, such as Vulkan, Metal, and Direct3D 11 as well. Therefore, working with GLSL source strings is no longer feasible. Rather, the new shader pipeline is based on compiling Vulkan-compatible GLSL code into \l{https://www.khronos.org/spir/}{SPIR-V}, followed by gathering reflection information and translating into other shading languages, such as HLSL, the Metal Shading Language, and various GLSL versions. The resulting assets are packed together into a single package, typically stored in files with an extension of \c{.qsb}. This process is done offline or at application build time at latest. At run time, the scene graph and the underlying graphics abstraction consumes these \c{.qsb} files. Therefore, ShaderEffect expects file (local or qrc) references in Qt 6 in place of inline shader code. The \l vertexShader and \l fragmentShader properties are URLs in Qt 6, and work very similarly to \l{Image::source}{Image.source}, for example. Only the \c file and \c qrc schemes are supported with ShaderEffect, however. It is also possible to omit the \c file scheme, allowing to specify a relative path in a convenient way. Such a path is resolved relative to the component's (the \c{.qml} file's) location. \section1 Shader Inputs and Resources There are two types of input to the \l vertexShader: uniforms and vertex inputs. The following inputs are predefined: \list \li vec4 qt_Vertex with location 0 - vertex position, the top-left vertex has position (0, 0), the bottom-right (\l{Item::width}{width}, \l{Item::height}{height}). \li vec2 qt_MultiTexCoord0 with location 1 - texture coordinate, the top-left coordinate is (0, 0), the bottom-right (1, 1). If \l supportsAtlasTextures is true, coordinates will be based on position in the atlas instead. \endlist \note It is only the vertex input location that matters in practice. The names are freely changeable, while the location must always be \c 0 for vertex position, \c 1 for texture coordinates. However, be aware that this applies to vertex inputs only, and is not necessarily true for output variables from the vertex shader that are then used as inputs in the fragment shader (typically, the interpolated texture coordinates). The following uniforms are predefined: \list \li mat4 qt_Matrix - combined transformation matrix, the product of the matrices from the root item to this ShaderEffect, and an orthogonal projection. \li float qt_Opacity - combined opacity, the product of the opacities from the root item to this ShaderEffect. \endlist \note Vulkan-style GLSL has no separate uniform variables. Instead, shaders must always use a uniform block with a binding point of \c 0. \note The uniform block layout qualifier must always be \c std140. \note Unlike vertex inputs, the predefined names (qt_Matrix, qt_Opacity) must not be changed. In addition, any property that can be mapped to a GLSL type can be made available to the shaders. The following list shows how properties are mapped: \list \li bool, int, qreal -> bool, int, float - If the type in the shader is not the same as in QML, the value is converted automatically. \li QColor -> vec4 - When colors are passed to the shader, they are first premultiplied. Thus Qt.rgba(0.2, 0.6, 1.0, 0.5) becomes vec4(0.1, 0.3, 0.5, 0.5) in the shader, for example. \li QRect, QRectF -> vec4 - Qt.rect(x, y, w, h) becomes vec4(x, y, w, h) in the shader. \li QPoint, QPointF, QSize, QSizeF -> vec2 \li QVector3D -> vec3 \li QVector4D -> vec4 \li QTransform -> mat3 \li QMatrix4x4 -> mat4 \li QQuaternion -> vec4, scalar value is \c w. \li \l Image -> sampler2D - Origin is in the top-left corner, and the color values are premultiplied. The texture is provided as is, excluding the Image item's fillMode. To include fillMode, use a ShaderEffectSource or Image::layer::enabled. \li \l ShaderEffectSource -> sampler2D - Origin is in the top-left corner, and the color values are premultiplied. \endlist Samplers are still declared as separate uniform variables in the shader code. The shaders are free to choose any binding point for these, except for \c 0 because that is reserved for the uniform block. Some shading languages and APIs have a concept of separate image and sampler objects. Qt Quick always works with combined image sampler objects in shaders, as supported by SPIR-V. Therefore shaders supplied for ShaderEffect should always use \c{layout(binding = 1) uniform sampler2D tex;} style sampler declarations. The underlying abstraction layer and the shader pipeline takes care of making this work for all the supported APIs and shading languages, transparently to the applications. The QML scene graph back-end may choose to allocate textures in texture atlases. If a texture allocated in an atlas is passed to a ShaderEffect, it is by default copied from the texture atlas into a stand-alone texture so that the texture coordinates span from 0 to 1, and you get the expected wrap modes. However, this will increase the memory usage. To avoid the texture copy, set \l supportsAtlasTextures for simple shaders using qt_MultiTexCoord0, or for each "uniform sampler2D <name>" declare a "uniform vec4 qt_SubRect_<name>" which will be assigned the texture's normalized source rectangle. For stand-alone textures, the source rectangle is [0, 1]x[0, 1]. For textures in an atlas, the source rectangle corresponds to the part of the texture atlas where the texture is stored. The correct way to calculate the texture coordinate for a texture called "source" within a texture atlas is "qt_SubRect_source.xy + qt_SubRect_source.zw * qt_MultiTexCoord0". The output from the \l fragmentShader should be premultiplied. If \l blending is enabled, source-over blending is used. However, additive blending can be achieved by outputting zero in the alpha channel. \table 70% \row \li \image declarative-shadereffectitem.png \li \qml import QtQuick 2.0 Rectangle { width: 200; height: 100 Row { Image { id: img; sourceSize { width: 100; height: 100 } source: "qt-logo.png" } ShaderEffect { width: 100; height: 100 property variant src: img vertexShader: "myeffect.vert.qsb" fragmentShader: "myeffect.frag.qsb" } } } \endqml \endtable The example assumes \c{myeffect.vert} and \c{myeffect.frag} contain Vulkan-style GLSL code, processed by the \c qsb tool in order to generate the \c{.qsb} files. \badcode #version 440 layout(location = 0) in vec4 qt_Vertex; layout(location = 1) in vec2 qt_MultiTexCoord0; layout(location = 0) out vec2 coord; layout(std140, binding = 0) uniform buf { mat4 qt_Matrix; float qt_Opacity; }; void main() { coord = qt_MultiTexCoord0; gl_Position = qt_Matrix * qt_Vertex; } \endcode \badcode #version 440 layout(location = 0) in vec2 coord; layout(location = 0) out vec4 fragColor; layout(std140, binding = 0) uniform buf { mat4 qt_Matrix; float qt_Opacity; }; layout(binding = 1) uniform sampler2D src; void main() { vec4 tex = texture(src, coord); fragColor = vec4(vec3(dot(tex.rgb, vec3(0.344, 0.5, 0.156))), tex.a) * qt_Opacity; } \endcode \note Scene Graph textures have origin in the top-left corner rather than bottom-left which is common in OpenGL. \section1 Having One Shader Only Specifying both \l vertexShader and \l fragmentShader is not mandatory. Many ShaderEffect implementations will want to provide a fragment shader only in practice, while relying on the default, built-in vertex shader. The default vertex shader passes the texture coordinate along to the fragment shader as \c{vec2 qt_TexCoord0} at location \c 0. The default fragment shader expects the texture coordinate to be passed from the vertex shader as \c{vec2 qt_TexCoord0} at location \c 0, and it samples from a sampler2D named \c source at binding point \c 1. \warning When only one of the shaders is specified, the writer of the shader must be aware of the uniform block layout expected by the default shaders: qt_Matrix must always be at offset 0, followed by qt_Opacity at offset 64. Any custom uniforms must be placed after these two. This is mandatory even when the application-provided shader does not use the matrix or the opacity, because at run time there is one single uniform buffer that is exposed to both the vertex and fragment shader. \warning Unlike with vertex inputs, passing data between the vertex and fragment shader may, depending on the underlying graphics API, require the same names to be used, a matching location is not always sufficient. Most prominently, when specifying a fragment shader while relying on the default, built-in vertex shader, the texture coordinates are passed on as \c qt_TexCoord0 at location \c 0, and therefore it is strongly advised that the fragment shader declares the input with the same name (qt_TexCoord0). Failing to do so may lead to issues on some platforms, for example when running with a non-core profile OpenGL context where the underlying GLSL shader source code has no location qualifiers and matching is based on the variable names during to shader linking process. \section1 ShaderEffect and Item Layers The ShaderEffect type can be combined with \l {Item Layers} {layered items}. \table \row \li \b {Layer with effect disabled} \inlineimage qml-shadereffect-nolayereffect.png \li \b {Layer with effect enabled} \inlineimage qml-shadereffect-layereffect.png \row \li \qml Item { id: layerRoot layer.enabled: true layer.effect: ShaderEffect { fragmentShader: "effect.frag.qsb" } } \endqml \badcode #version 440 layout(location = 0) in vec2 qt_TexCoord0; layout(location = 0) out vec4 fragColor; layout(std140, binding = 0) uniform buf { mat4 qt_Matrix; float qt_Opacity; }; layout(binding = 1) uniform sampler2D source; void main() { vec4 p = texture(source, qt_TexCoord0); float g = dot(p.xyz, vec3(0.344, 0.5, 0.156)); fragColor = vec4(g, g, g, p.a) * qt_Opacity; } \endcode \endtable It is also possible to combine multiple layered items: \table \row \li \inlineimage qml-shadereffect-opacitymask.png \row \li \qml Rectangle { id: gradientRect; width: 10 height: 10 gradient: Gradient { GradientStop { position: 0; color: "white" } GradientStop { position: 1; color: "steelblue" } } visible: false; // should not be visible on screen. layer.enabled: true; layer.smooth: true } Text { id: textItem font.pixelSize: 48 text: "Gradient Text" anchors.centerIn: parent layer.enabled: true
This item should be used as the 'mask' layer.samplerName: "maskSource" layer.effect: ShaderEffect { property var colorSource: gradientRect; fragmentShader: "mask.frag.qsb" } } \endqml
\badcode #version 440 layout(location = 0) in vec2 qt_TexCoord0; layout(location = 0) out vec4 fragColor; layout(std140, binding = 0) uniform buf { mat4 qt_Matrix; float qt_Opacity; }; layout(binding = 1) uniform sampler2D colorSource; layout(binding = 2) uniform sampler2D maskSource; void main() { fragColor = texture(colorSource, qt_TexCoord0) texture(maskSource, qt_TexCoord0).a qt_Opacity; } \endtable
By default, the ShaderEffect consists of four vertices, one for each corner. For non-linear vertex transformations, like page curl, you can specify a fine grid of vertices by specifying a \l mesh resolution.
For Qt 5 applications with ShaderEffect items the migration to Qt 6 involves: \list
{.vert} and
{.frag} files, qsb
tool on them,
{.qsb} files in the executable with the Qt resource system, As described in the \l{Qt Shader Tools} module some of these steps can be automated by letting CMake invoke the qsb
tool at build time. See \l{Qt Shader Tools Build System Integration} for more information and examples.
When it comes to updating the shader code, below is an overview of the commonly required changes.
\table \header
The conversion process mostly involves updating the code to be compatible with \l{https://github.com/KhronosGroup/GLSL/blob/master/extensions/khr/GL_KHR_vulkan_glsl.txt}{GL_KHR_vulkan_glsl}. It is worth noting that Qt Quick uses a subset of the features provided by GLSL and Vulkan, and therefore the conversion process for typical ShaderEffect shaders is usually straightforward.
\list
version
directive should state 440
or 450
, although specifying other GLSL version may work too, because the \l{https://github.com/KhronosGroup/GLSL/blob/master/extensions/khr/GL_KHR_vulkan_glsl.txt}{GL_KHR_vulkan_glsl} extension is written for GLSL 140 and higher.in
and out
keywords. In addition, specifying a location is required. The input and output location namespaces are separate, and therefore assigning locations starting from 0 for both is safe.0
for vertex position (traditionally named qt_Vertex
) and location 1
for texture coordinates (traditionally named qt_MultiTexCoord0
).vec4
output at location 0 (typically called fragColor
). For maximum portability, vertex outputs and fragment inputs should use both the same location number and the same name. When specifying only a fragment shader, the texture coordinates are passed in from the built-in vertex shader as
{vec2 qt_TexCoord0} at location 0
, as shown in the example snippets above.0
.qt_Matrix
and qt_Opacity
at the top of the uniform block. (more precisely, at offset 0 and 64, respectively) As a general rule, always include these as the first and second members in the block.buf
. This name can be changed freely, but must match between the shaders. Using an instance name, such as
{layout(...) uniform buf { ... } instance_name;} is optional. When specified, all accesses to the members must be qualified with instance_name.\endlist
\table \header
\list
lowp
, mediump
, highp
) are not currently used.
{texture()} instead of
{texture2D()}.multiview
enabled, e.g. because it is part of a 3D scene rendering in a VR/AR environment where the left and right eye content are generated in a single pass, the ShaderEffect's shaders have to be written with this in mind. With a view count of 2 for example, there will be 2
matrices (qt_Matrix is an array of mat4 with two elements). The vertex shader is expected to take gl_ViewIndex
into account. See the Multiview
section in the \l{QSB Manual} for general information on creating multiview-capable shaders.\endlist
using QtPrivate::ArgumentType = typename Argument<T>::Type |
Definition at line 55 of file qtconcurrentfunctionwrappers.h.
using QtPrivate::ArrayType |
Definition at line 51 of file qmakearray_p.h.
Definition at line 62 of file qfunctionaltools_impl.h.
Definition at line 25 of file qcompare.h.
using QtPrivate::ConcatSeq = InvokeGenSeq<ConcatSeqImpl<N, S1, S2>> |
Definition at line 103 of file qobjectdefs_impl.h.
using QtPrivate::EnableForNonVoid = std::enable_if_t<!std::is_same_v<T, void>> |
Definition at line 55 of file qfuture_impl.h.
using QtPrivate::EnableForVoid = std::enable_if_t<std::is_same_v<T, void>> |
Definition at line 52 of file qfuture_impl.h.
using QtPrivate::EnableIfInvocable |
Definition at line 244 of file qfuture_impl.h.
using QtPrivate::EnableIfSameOrConvertible = std::enable_if_t<std::is_convertible_v<T, U>> |
Definition at line 19 of file qpromise.h.
using QtPrivate::FilterLastPrivateSignalArg |
Definition at line 131 of file qfuture_impl.h.
using QtPrivate::FirstAndSecondTest |
Definition at line 301 of file qcontainertools_impl.h.
using QtPrivate::FunctionStorage = QtPrivate::CompactStorage<Func> |
Definition at line 260 of file qobject_p.h.
using QtPrivate::HasInputIterator |
Definition at line 277 of file qfuture_impl.h.
using QtPrivate::if_volatile = std::enable_if_t<std::is_volatile_v<T>, bool> |
Definition at line 24 of file qvolatile_p.h.
using QtPrivate::IfAssociativeIteratorHasFirstAndSecond |
Definition at line 311 of file qcontainertools_impl.h.
using QtPrivate::IfAssociativeIteratorHasKeyAndValue |
Definition at line 307 of file qcontainertools_impl.h.
using QtPrivate::IfIsForwardIterator |
Definition at line 270 of file qcontainertools_impl.h.
using QtPrivate::IfIsInputIterator |
Definition at line 265 of file qcontainertools_impl.h.
using QtPrivate::IfIsNotConvertible = typename std::enable_if<!std::is_convertible<T, U>::value, bool>::type |
Definition at line 332 of file qcontainertools_impl.h.
using QtPrivate::IfIsNotForwardIterator |
Definition at line 275 of file qcontainertools_impl.h.
using QtPrivate::IfIsNotSame |
Definition at line 328 of file qcontainertools_impl.h.
using QtPrivate::IfIteratorCanMoveBackwards |
Definition at line 324 of file qcontainertools_impl.h.
using QtPrivate::InvokeGenSeq = typename T::Type |
Definition at line 92 of file qobjectdefs_impl.h.
using QtPrivate::IsCompatibleChar32Type = IsCompatibleChar32TypeHelper<q20::remove_cvref_t<Char>> |
using QtPrivate::IsCompatibleChar32TypeHelper |
using QtPrivate::IsCompatibleChar8Type = IsCompatibleChar8TypeHelper<q20::remove_cvref_t<Char>> |
Definition at line 33 of file qutf8stringview.h.
using QtPrivate::IsCompatibleChar8TypeHelper |
Definition at line 24 of file qutf8stringview.h.
using QtPrivate::IsCompatiblePointer8 = IsCompatiblePointer8Helper<q20::remove_cvref_t<Pointer>> |
Definition at line 41 of file qutf8stringview.h.
using QtPrivate::IsForwardIterable |
Definition at line 283 of file qfuture_impl.h.
using QtPrivate::isInvocable = std::is_invocable<Callable, typename std::decay_t<Sequence>::value_type> |
Definition at line 123 of file qtconcurrentfunctionwrappers.h.
using QtPrivate::isQFuture = std::bool_constant<isQFutureV<T>> |
Definition at line 254 of file qfuture_impl.h.
using QtPrivate::IsRandomAccessible |
Definition at line 271 of file qfuture_impl.h.
using QtPrivate::IsRealGadget = std::bool_constant<IsGadgetHelper<T>::IsRealGadget> |
Definition at line 957 of file qmetatype.h.
using QtPrivate::IsUntypedPropertyData = std::enable_if_t<std::is_base_of_v<QUntypedPropertyData, T>, bool> |
Definition at line 135 of file qpropertyprivate.h.
using QtPrivate::KeyAndValueTest |
Definition at line 295 of file qcontainertools_impl.h.
using QtPrivate::makeIndexSequence = InvokeGenSeq<GenSeq<N>> |
Definition at line 106 of file qobjectdefs_impl.h.
using QtPrivate::MapResultType = typename MapResult<T, MapFunctor>::Type |
Definition at line 66 of file qtconcurrentfunctionwrappers.h.
using QtPrivate::MoveBackwardsTest |
Definition at line 319 of file qcontainertools_impl.h.
Definition at line 261 of file qmetatype.h.
using QtPrivate::NotEmpty = std::bool_constant<(sizeof...(Args) > 0)> |
Definition at line 268 of file qfuture_impl.h.
using QtPrivate::QHashMultiReturnType |
Definition at line 293 of file qhashfunctions.h.
using QtPrivate::QPropertyBindingWrapper = bool(*)(QMetaType, QUntypedPropertyData *dataPtr, QPropertyBindingFunction) |
Definition at line 226 of file qpropertyprivate.h.
using QtPrivate::QPropertyObserverCallback = void (*)(QUntypedPropertyData *) |
Definition at line 225 of file qpropertyprivate.h.
using QtPrivate::qRemovePointerLike_t = typename qRemovePointerLike<T>::type |
Definition at line 2593 of file qmetatype.h.
Definition at line 507 of file qobjectdefs_impl.h.
using QtPrivate::wrapped_t = typename wrapped<Tag, Result>::type |
Definition at line 28 of file qanystringview.h.
|
strong |
Enumerator | |
---|---|
Unordered |
Definition at line 671 of file qcompare.h.
|
strong |
Enumerator | |
---|---|
Equal | |
Equivalent | |
Less | |
Greater |
Definition at line 28 of file qcompare.h.
|
strong |
Enumerator | |
---|---|
Unordered |
Definition at line 36 of file qcompare.h.
void QtPrivate::addCompletionHandlers | ( | const std::shared_ptr< ContextType > & | context, |
const std::tuple< Ts... > & | t ) |
Definition at line 1117 of file qfuture_impl.h.
References addCompletionHandlersImpl(), and context.
Referenced by whenAllImpl(), and whenAnyImpl().
void QtPrivate::addCompletionHandlersImpl | ( | const std::shared_ptr< ContextType > & | context, |
const std::tuple< Ts... > & | t ) |
Definition at line 1100 of file qfuture_impl.h.
References context, future, and QFuture< T >::then().
Referenced by addCompletionHandlers().
QString QtPrivate::argToQString | ( | QLatin1StringView | pattern, |
size_t | n, | ||
const ArgBase ** | args ) |
Definition at line 9296 of file qstring.cpp.
References args, and argToQStringImpl().
QString QtPrivate::argToQString | ( | QStringView | pattern, |
size_t | n, | ||
const ArgBase ** | args ) |
Definition at line 9291 of file qstring.cpp.
References args, and argToQStringImpl().
Referenced by argToQStringDispatch().
Q_ALWAYS_INLINE QString QtPrivate::argToQStringDispatch | ( | StringView | pattern, |
const Args &... | args ) |
Definition at line 1573 of file qstring.h.
References args, argToQString(), and argToQStringDispatch().
Referenced by QStringView::arg(), QLatin1StringView::arg(), and argToQStringDispatch().
|
inlineconstexpr |
Definition at line 656 of file qobjectdefs_impl.h.
Definition at line 120 of file qobjectdefs_impl.h.
References className, o, and Q_ASSERT_X.
|
inline |
Definition at line 262 of file qobject_p.h.
References d.
auto QtPrivate::associative_erase_if | ( | Container & | c, |
Predicate & | pred ) |
Definition at line 429 of file qcontainertools_impl.h.
References QSet< T >::begin(), QSet< T >::erase(), it, and Key.
Referenced by QHash< Key, T >::erase_if(), erase_if(), QMultiHash< Key, T >::erase_if(), erase_if(), QHash< Key, T >::removeIf(), QMultiHash< Key, T >::removeIf(), QMap< Key, T >::removeIf(), and QMultiMap< Key, T >::removeIf().
|
inline |
Definition at line 436 of file qhashedstring_p.h.
|
inline |
Definition at line 437 of file qhashedstring_p.h.
|
constexpr |
Definition at line 19 of file qaudioformat.h.
Referenced by QAudioFormat::channelConfig().
|
staticconstexpr |
Definition at line 1201 of file qmetatype.h.
References checkTypeIsSuitableForMetaType().
Referenced by checkTypeIsSuitableForMetaType().
int QtPrivate::compareMemory | ( | QByteArrayView | lhs, |
QByteArrayView | rhs ) |
Definition at line 391 of file qbytearray.cpp.
References QByteArrayView::data(), QByteArrayView::isNull(), qMin(), ret, and QByteArrayView::size().
Referenced by QByteArray::compare(), and QByteArrayView::compare().
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Referenced by QBasicUtf8StringView< UseChar8T >::compare(), QString::compare(), QAnyStringView::compare(), QBasicUtf8StringView< UseChar8T >::compare(), QLatin1StringView::compare(), QStringView::compare(), QBasicUtf8StringView< UseChar8T >::compare(), QLatin1StringView::compare(), QString::compare(), QStringView::compare(), QBasicUtf8StringView< UseChar8T >::compare(), QLatin1StringView::compare(), QStringView::compare(), QBasicUtf8StringView< UseChar8T >::compare(), QCollator::compare(), QLatin1StringView::compare(), QStringView::compare(), Widget::compareSensitiveFunction(), findString(), sortContainer(), and QCborContainerPrivate::stringCompareElement().
To QtPrivate::convertImplicit | ( | const From & | from | ) |
This template is used for implicit conversion from type From to type To.
Definition at line 317 of file qmetatype.h.
|
related |
|
related |
|
related |
|
related |
|
related |
|
inlinenoexcept |
Definition at line 509 of file qobjectdefs_impl.h.
References other().
Referenced by QtPrivate::QExplicitlySharedDataPointerV2< T >::detach(), QtPrivate::QPodArrayOps< T >::insert(), QtPrivate::QGenericArrayOps< T >::insert(), QtPrivate::QMovableArrayOps< T >::insert(), and QtPrivate::QExplicitlySharedDataPointerV2< T >::operator=().
|
noexcept |
Definition at line 2870 of file qbytearray.cpp.
References countCharHelper(), i, and matcher.
Referenced by QByteArrayView::count(), QString::count(), QByteArrayView::count(), QByteArray::count(), QString::count(), QStringView::count(), QLatin1StringView::count(), QStringView::count(), QLatin1StringView::count(), count(), QString::count(), QStringView::count(), and QLatin1StringView::count().
|
noexcept |
Definition at line 9781 of file qstring.cpp.
References Qt::CaseSensitive, and QtPrivate::QCaseInsensitiveLatin1Hash::matcher().
qsizetype QtPrivate::count | ( | QLatin1StringView | haystack, |
QLatin1StringView | needle, | ||
Qt::CaseSensitivity | cs = Qt::CaseSensitive ) |
Definition at line 9738 of file qstring.cpp.
qsizetype QtPrivate::count | ( | QLatin1StringView | haystack, |
QStringView | needle, | ||
Qt::CaseSensitivity | cs = Qt::CaseSensitive ) |
Definition at line 9750 of file qstring.cpp.
References i, isLatin1(), matcher, and qt_to_latin1_unchecked().
|
noexcept |
Definition at line 9728 of file qstring.cpp.
References Qt::CaseSensitive, and foldCase().
qsizetype QtPrivate::count | ( | QStringView | haystack, |
QLatin1StringView | needle, | ||
Qt::CaseSensitivity | cs = Qt::CaseSensitive ) |
Definition at line 9772 of file qstring.cpp.
References count(), and qt_from_latin1_to_qvla().
|
noexcept |
Definition at line 9713 of file qstring.cpp.
References findString(), i, and matcher.
|
inlineconstexpr |
Definition at line 424 of file qobjectdefs_impl.h.
auto QtPrivate::createTuple | ( | Arg && | arg, |
Args &&... | args ) |
Definition at line 112 of file qfuture_impl.h.
References arg, args, and cutTuple().
Referenced by QtFuture::connect().
auto QtPrivate::cutTuple | ( | Tuple && | t, |
std::index_sequence< I... > | ) |
Definition at line 106 of file qfuture_impl.h.
Referenced by createTuple().
|
noexcept |
Definition at line 2963 of file qbytearray.cpp.
Referenced by QByteArray::endsWith(), QByteArrayView::endsWith(), QLatin1StringView::endsWith(), QStringView::endsWith(), QLatin1StringView::endsWith(), QStringView::endsWith(), QLatin1StringView::endsWith(), QString::endsWith(), and QStringView::endsWith().
|
related |
Definition at line 9870 of file qstring.cpp.
|
noexcept |
Definition at line 9865 of file qstring.cpp.
|
noexcept |
Definition at line 9860 of file qstring.cpp.
|
noexcept |
Definition at line 9855 of file qstring.cpp.
|
noexcept |
Definition at line 1436 of file qstring.cpp.
References Q_ASSERT.
|
noexcept |
Definition at line 1431 of file qstring.cpp.
References equalStrings().
|
noexcept |
Definition at line 1416 of file qstring.cpp.
References QUtf8::compareUtf8().
|
noexcept |
Definition at line 1426 of file qstring.cpp.
References QUtf8::compareUtf8().
|
noexcept |
Definition at line 1410 of file qstring.cpp.
References Q_ASSERT.
|
noexcept |
Definition at line 1405 of file qstring.cpp.
References equalStrings().
|
noexcept |
Definition at line 1421 of file qstring.cpp.
References equalStrings().
|
noexcept |
Definition at line 1399 of file qstring.cpp.
References Q_ASSERT, and ucstreq().
|
noexcept |
Definition at line 1393 of file qstring.cpp.
References Q_ASSERT, and ucstreq().
Referenced by QBasicUtf8StringView< UseChar8T >::equal(), QAnyStringView::equal(), QBasicUtf8StringView< UseChar8T >::equal(), QBasicUtf8StringView< UseChar8T >::equal(), QBasicUtf8StringView< UseChar8T >::equal(), equalStrings(), equalStrings(), equalStrings(), and QCborContainerPrivate::stringCompareElement().
|
inlinenoexcept |
Definition at line 390 of file qbytearrayview.h.
References qMax().
Referenced by findByteArray(), QByteArrayView::indexOf(), QByteArrayView::indexOf(), and QByteArray::indexOf().
|
noexcept |
Definition at line 2688 of file qbytearray.cpp.
References findByteArray(), qFindByteArray(), and qMax().
|
static |
Finds result in store by index
Definition at line 15 of file qresultstore.cpp.
References QSet< T >::count(), and it.
Referenced by QtPrivate::ResultStoreBase::containsValidResultItem(), and QtPrivate::ResultStoreBase::resultAt().
|
noexcept |
Definition at line 9976 of file qstring.cpp.
References begin(), Qt::CaseInsensitive, Qt::CaseSensitive, QLatin1StringView::compare(), it, matcher, QtPrivate::QCaseInsensitiveLatin1Hash::matcher(), and Q_ASSERT.
|
noexcept |
Definition at line 9958 of file qstring.cpp.
References findString(), isLatin1(), and qt_to_latin1_unchecked().
|
noexcept |
Definition at line 9949 of file qstring.cpp.
References findString(), and qt_from_latin1_to_qvla().
|
noexcept |
Definition at line 9875 of file qstring.cpp.
References Qt::CaseInsensitive, Qt::CaseSensitive, compareStrings(), findString(), foldCase(), qFindStringBoyerMoore(), and REHASH.
|
inlinenoexcept |
Definition at line 479 of file qstringview.h.
References Qt::CaseSensitive, ch, qMax(), qustrcasechr(), qustrchr(), QString::size(), str, and QString::utf16().
Referenced by count(), findString(), findString(), findString(), QString::indexOf(), QLatin1StringView::indexOf(), QStringView::indexOf(), QString::indexOf(), QLatin1StringView::indexOf(), QStringView::indexOf(), QLatin1StringView::indexOf(), QString::indexOf(), and QStringView::indexOf().
|
noexcept |
|
constexprnoexcept |
Definition at line 34 of file qmakearray_p.h.
|
constexprnoexcept |
Definition at line 28 of file qmakearray_p.h.
Referenced by qMakeArray().
void QtPrivate::fulfillPromise | ( | QPromise< T > & | promise, |
Function && | handler ) |
Definition at line 670 of file qfuture_impl.h.
void QtPrivate::fulfillPromise | ( | QPromise< T > & | promise, |
QFuture< T > & | future ) |
Definition at line 659 of file qfuture_impl.h.
References future, QFuture< T >::result(), and QFuture< T >::takeResult().
Referenced by QtPrivate::FailureHandler< Function, ResultType >::run(), QtPrivate::CanceledHandler< Function, ResultType >::run(), and QtPrivate::Continuation< Function, ResultType, ParentResultType >::runFunction().
QBindingStatus * QtPrivate::getBindingStatus | ( | QtPrivate::QBindingStatusAccessToken | ) |
Returns the binding statusof the current thread.
Definition at line 2422 of file qproperty.cpp.
References bindingStatus.
Referenced by QAdoptedThread::QAdoptedThread().
|
inline |
Definition at line 257 of file qobject_p.h.
References d.
Referenced by QObjectPrivate::connect().
|
noexcept |
Definition at line 927 of file qlist.h.
References QList< T >::begin(), QList< T >::end(), qMax(), QList< T >::size(), and vector.
void Q_CORE_EXPORT QtPrivate::initBindingStatusThreadId | ( | ) |
Definition at line 2350 of file qproperty.cpp.
References bindingStatus, and QThread::currentThreadId().
Referenced by Q_TRACE_INSTRUMENT().
|
static |
Definition at line 124 of file qgraphicssceneindex.cpp.
References _q_adjustRect(), QGraphicsItem::boundingRect(), QMap< Key, T >::contains(), Qt::ContainsItemBoundingRect, Qt::ContainsItemShape, QGraphicsItem::deviceTransform(), deviceTransform(), QGraphicsItemPrivate::get(), Qt::IntersectsItemShape, item, QGraphicsSceneIndexPrivate::itemCollidesWithPath(), map, Q_ASSERT, Q_UNUSED, QPainterPath::translated(), and QRectF::translated().
Referenced by QGraphicsSceneIndex::items(), and QGraphicsSceneIndex::items().
|
static |
Definition at line 82 of file qgraphicssceneindex.cpp.
References _q_adjustRect(), QPainterPath::addRect(), QGraphicsItem::boundingRect(), QGraphicsItem::contains(), QRectF::contains(), Qt::ContainsItemShape, QGraphicsItem::deviceTransform(), deviceTransform(), QGraphicsItemPrivate::get(), QRectF::intersects(), Qt::IntersectsItemShape, item, QGraphicsSceneIndexPrivate::itemCollidesWithPath(), map, Q_ASSERT, Q_UNUSED, and QRectF::translated().
Referenced by QGraphicsSceneIndex::items().
|
static |
Definition at line 33 of file qgraphicssceneindex.cpp.
References _q_adjustRect(), QPainterPath::addRect(), QGraphicsItem::boundingRect(), QRectF::contains(), Qt::ContainsItemBoundingRect, Qt::ContainsItemShape, QGraphicsItem::deviceTransform(), deviceTransform(), QGraphicsItemPrivate::get(), QRectF::intersects(), Qt::IntersectsItemShape, item, QGraphicsSceneIndexPrivate::itemCollidesWithPath(), Q_ASSERT, Q_UNUSED, and QRectF::translated().
Referenced by QGraphicsSceneIndex::items().
|
inline |
Definition at line 209 of file qobjectdefs.h.
References arguments, QtPrivate::Invoke::dataHelper(), QtPrivate::Invoke::metaTypeHelper(), R, and QtPrivate::Invoke::typenameHelper().
Referenced by QMetaMethod::invoke(), QMetaObject::invokeMethod(), QMetaMethod::invokeOnGadget(), and QMetaObject::newInstance().
Q_CORE_EXPORT bool QtPrivate::isAnyBindingEvaluating | ( | ) |
This function can be used to detect whether we are currently evaluating a binding. This can e.g. be used to defer the allocation of extra data for a QPropertyBindingStorage in a getter. Note that this function accesses TLS storage, and is therefore soemwhat costly to call.
Definition at line 2375 of file qproperty.cpp.
References bindingStatus.
Referenced by QObject::objectName().
|
noexcept |
Definition at line 850 of file qstring.cpp.
References ptr(), and qt_is_ascii().
Referenced by QCborContainerPrivate::append(), QCborStreamWriter::append(), QCborContainerPrivate::append(), QAnyStringViewUtils::endsWith(), QAnyStringViewUtils::lastIndexOf(), QAnyStringViewUtils::split(), and QAnyStringViewUtils::startsWith().
|
noexcept |
Definition at line 877 of file qstring.cpp.
References isAscii_helper(), and ptr().
Q_CORE_EXPORT bool QtPrivate::isBuiltinType | ( | const QByteArray & | type | ) |
Definition at line 46 of file qmetaobjectbuilder.cpp.
References QMetaType::fromName(), and QMetaType::User.
Referenced by buildMetaObject().
|
inlineconstexprnoexcept |
Definition at line 66 of file qstring.h.
Referenced by count(), and findString().
|
noexcept |
Definition at line 885 of file qstring.cpp.
References ptr().
|
noexcept |
Definition at line 5557 of file qstring.cpp.
References checkCase(), and QUnicodeTables::LowerCase.
Referenced by QString::isLower(), and QStringView::isLower().
Q_CORE_EXPORT bool QtPrivate::isPropertyInBindingWrapper | ( | const QUntypedPropertyData * | property | ) |
Definition at line 2380 of file qproperty.cpp.
References bindingStatus, and property.
|
related |
Referenced by QString::isRightToLeft(), QStringView::isRightToLeft(), and QtPrivate::QCalendarView::moveCursor().
|
noexcept |
Definition at line 5562 of file qstring.cpp.
References checkCase(), and QUnicodeTables::UpperCase.
Referenced by QString::isUpper(), and QStringView::isUpper().
|
noexcept |
Definition at line 905 of file qstring.cpp.
References i.
Referenced by QStringView::isValidUtf16().
|
noexcept |
Definition at line 407 of file qbytearray.cpp.
References QUtf8::isValidUtf8().
Referenced by QByteArray::isValidUtf8(), QByteArrayView::isValidUtf8(), and QCborStreamReaderPrivate::readStringChunk_utf8().
|
noexcept |
Definition at line 942 of file qlist.h.
References QList< T >::begin(), QList< T >::size(), and vector.
|
noexcept |
|
noexcept |
Definition at line 2788 of file qbytearray.cpp.
References lastIndexOfCharHelper().
Referenced by QByteArrayView::lastIndexOf(), QListSpecialMethodsBase< T >::lastIndexOf(), QString::lastIndexOf(), QByteArrayView::lastIndexOf(), QByteArray::lastIndexOf(), QLatin1StringView::lastIndexOf(), QStringView::lastIndexOf(), QString::lastIndexOf(), QLatin1StringView::lastIndexOf(), QStringView::lastIndexOf(), QStringView::lastIndexOf(), QLatin1StringView::lastIndexOf(), QString::lastIndexOf(), and QStringView::lastIndexOf().
|
noexcept |
Definition at line 2793 of file qbytearray.cpp.
References lastIndexOfCharHelper(), and lastIndexOfHelper().
|
noexcept |
Definition at line 10053 of file qstring.cpp.
|
noexcept |
Definition at line 10048 of file qstring.cpp.
|
noexcept |
Definition at line 10033 of file qstring.cpp.
|
noexcept |
Definition at line 10043 of file qstring.cpp.
|
noexcept |
Definition at line 10038 of file qstring.cpp.
T QtPrivate::legacyEnumValueFromModelData | ( | const QVariant & | data | ) |
This is a workaround for QTBUG-75172.
Some predefined model roles are supposed to use certain enum/flag types (e.g. fetching Qt::TextAlignmentRole is supposed to return a variant containing a Qt::Alignment object).
For historical reasons, a plain int
was used sometimes. This is surprising to end-users and also sloppy on Qt's part; users were forced to use int
rather than the correct datatype.
This function tries both the "right" type and plain int
, for a given QVariant. This fixes the problem (using the correct datatype) but also keeps compatibility with existing code using int
.
Definition at line 145 of file qabstractitemmodel_p.h.
T QtPrivate::legacyFlagValueFromModelData | ( | const QVariant & | data | ) |
Definition at line 159 of file qabstractitemmodel_p.h.
|
constexpr |
Definition at line 152 of file qstringalgorithms.h.
References q20::is_constant_evaluated(), lengthHelperContainerLoop(), qustrnlen(), and str.
|
inlineconstexpr |
Definition at line 191 of file qstringalgorithms.h.
References q20::is_constant_evaluated(), lengthHelperContainerLoop(), qstrnlen_helper(), and str.
|
constexprnoexcept |
Definition at line 202 of file qstringalgorithms.h.
|
constexpr |
Definition at line 132 of file qstringalgorithms.h.
Referenced by lengthHelperContainer().
|
staticconstexprnoexcept |
Definition at line 69 of file qbytearrayview.h.
|
staticconstexpr |
Definition at line 630 of file qobjectdefs_impl.h.
|
inlineconstexpr |
Definition at line 79 of file qlocale_p.h.
References view.
|
constexpr |
Definition at line 130 of file qoffsetstringarray_p.h.
References q20::transform().
Referenced by qOffsetStringArray().
QFuture< ValueType > QtPrivate::makeReadyRangeFutureImpl | ( | const QList< ValueType > & | values | ) |
Definition at line 892 of file qfuture_impl.h.
Referenced by QtFuture::makeReadyRangeFuture(), and QtFuture::makeReadyRangeFuture().
|
constexpr |
Definition at line 97 of file qoffsetstringarray_p.h.
References q20::copy_n(), and i.
|
inlineconstexpr |
Definition at line 366 of file qnumeric.h.
Referenced by qFuzzyCompare(), qFuzzyCompare(), and QtPrivate::QCalendarModel::setRange().
|
constexpr |
Definition at line 82 of file qoffsetstringarray_p.h.
Definition at line 15 of file qtaggedpointer.h.
|
inline |
Definition at line 294 of file qdebug.h.
References QSet< T >::constBegin(), QSet< T >::constEnd(), debug, it, and printAssociativeContainer().
Referenced by printAssociativeContainer().
|
inline |
Definition at line 276 of file qdebug.h.
References QSet< T >::begin(), debug, it, and printSequentialContainer().
Referenced by operator<<(), operator<<(), and printSequentialContainer().
QtPrivate::Q_LOGGING_CATEGORY | ( | lcEventDispatcher | , |
"qt.eventdispatcher" | ) |
QtPrivate::Q_LOGGING_CATEGORY | ( | lcEventDispatcherTimers | , |
"qt.eventdispatcher.timers" | ) |
|
staticconstexprnoexcept |
Returns whether p is within container c. In its simplest form equivalent to: c.data() <= p < c.data() + c.size()
Definition at line 49 of file qcontainertools_impl.h.
References q_points_into_range().
|
staticconstexprnoexcept |
Returns whether p is within a range [b, e). In simplest form equivalent to: b <= p < e.
Definition at line 36 of file qcontainertools_impl.h.
Referenced by defaultIndex(), QtPrivate::QCommonArrayOps< T >::growAppend(), QString::insert(), QByteArray::insert(), q_points_into_range(), q_uninitialized_remove_copy_if(), QArrayDataPointer< T >::relocate(), QString::remove(), QByteArray::replace(), QByteArray::replace(), replace_helper(), and QVLABase< T >::resize_impl().
void QtPrivate::q_relocate_overlap_n | ( | T * | first, |
N | n, | ||
T * | d_first ) |
Relocates a range [first, n) to [d_first, n) taking care of potential memory overlaps. This is a generic equivalent of memmove.
If an exception is thrown during the relocation, all the relocated elements are destroyed and [first, n) may contain valid but unspecified values, including moved-from values (basic exception safety).
Definition at line 236 of file qcontainertools_impl.h.
References q_relocate_overlap_n_left_move().
Referenced by QArrayDataPointer< T >::relocate().
void QtPrivate::q_relocate_overlap_n_left_move | ( | iterator | first, |
N | n, | ||
iterator | d_first ) |
Definition at line 147 of file qcontainertools_impl.h.
References it, iter, and Q_ASSERT.
Referenced by q_relocate_overlap_n().
QT_WARNING_POP void QtPrivate::q_rotate | ( | T * | first, |
T * | mid, | ||
T * | last ) |
A wrapper around std::rotate(), with an optimization for Q_RELOCATABLE_TYPEs. We omit the return value, as it would be more work to compute in the Q_RELOCATABLE_TYPE case and, unlike std::rotate on ForwardIterators, callers can compute the result in constant time themselves.
Definition at line 101 of file qcontainertools_impl.h.
Referenced by QVLABase< T >::emplace_impl(), and QVLABase< T >::insert_impl().
QT_WARNING_PUSH void QtPrivate::q_uninitialized_move_if_noexcept_n | ( | T * | first, |
N | n, | ||
T * | out ) |
Definition at line 63 of file qcontainertools_impl.h.
References out.
Referenced by q_uninitialized_relocate_n().
void QtPrivate::q_uninitialized_relocate_n | ( | T * | first, |
N | n, | ||
T * | out ) |
Definition at line 72 of file qcontainertools_impl.h.
References out, and q_uninitialized_move_if_noexcept_n().
Referenced by QVarLengthArray< T, Prealloc >::QVarLengthArray(), QVarLengthArray< T, Prealloc >::operator=(), and QVLABase< T >::reallocate_impl().
T * QtPrivate::q_uninitialized_remove_copy_if | ( | T * | first, |
T * | last, | ||
T * | out, | ||
Predicate & | pred ) |
Copies all elements, except the ones for which pred returns true
, from range [first, last), to the uninitialized memory buffer starting at out.
It's undefined behavior if out points into [first, last).
Returns a pointer one past the last copied element.
If an exception is thrown, all the already copied elements in the destination buffer are destroyed.
Definition at line 124 of file qcontainertools_impl.h.
References out, Q_ASSERT, q_points_into_range(), QT_CATCH, QT_RETHROW, and QT_TRY.
Referenced by QtPrivate::QPodArrayOps< T >::eraseIf().
QByteArray QtPrivate::QByteArrayList_join | ( | const QByteArrayList * | that, |
const char * | sep, | ||
qsizetype | len ) |
Definition at line 105 of file qbytearraylist.cpp.
References i, QByteArrayList_joinedSize(), QByteArray::reserve(), and sep.
Referenced by QByteArrayList::QMutableByteArrayListIterator().
Definition at line 301 of file qalgorithms.h.
Definition at line 269 of file qalgorithms.h.
Referenced by qConstexprCountTrailingZeroBits(), qConstexprCountTrailingZeroBits(), qCountTrailingZeroBits(), qCountTrailingZeroBits(), qCountTrailingZeroBits(), and qCountTrailingZeroBits().
Definition at line 283 of file qalgorithms.h.
References qConstexprCountTrailingZeroBits().
Definition at line 290 of file qalgorithms.h.
|
inlineconstexprnoexcept |
Definition at line 313 of file qalgorithms.h.
References qConstexprCountTrailingZeroBits().
Definition at line 324 of file qmath.h.
References qConstexprNextPowerOfTwo().
Definition at line 329 of file qmath.h.
References qConstexprNextPowerOfTwo().
Definition at line 301 of file qmath.h.
Referenced by qConstexprNextPowerOfTwo(), qConstexprNextPowerOfTwo(), qNextPowerOfTwo(), and qNextPowerOfTwo().
Referenced by QHash< Key, T >::asKeyValueRange(), QMultiHash< Key, T >::asKeyValueRange(), QMap< Key, T >::asKeyValueRange(), QMultiMap< Key, T >::asKeyValueRange(), QHash< Key, T >::asKeyValueRange(), QMultiHash< Key, T >::asKeyValueRange(), QMap< Key, T >::asKeyValueRange(), QMultiMap< Key, T >::asKeyValueRange(), QHash< Key, T >::asKeyValueRange(), QMultiHash< Key, T >::asKeyValueRange(), QMap< Key, T >::asKeyValueRange(), QMultiMap< Key, T >::asKeyValueRange(), QHash< Key, T >::asKeyValueRange(), QMultiHash< Key, T >::asKeyValueRange(), QMap< Key, T >::asKeyValueRange(), and QMultiMap< Key, T >::asKeyValueRange().
QForeachContainer< typename std::decay< T >::type > QtPrivate::qMakeForeachContainer | ( | T && | t | ) |
Definition at line 49 of file qforeach.h.
|
static |
Definition at line 28 of file qstringliteral.h.
References str.
|
constexpr |
Definition at line 2604 of file qmetatype.h.
References qMetaTypeInterfaceForType().
Referenced by qMetaTypeInterfaceForType().
|
constexpr |
Definition at line 2245 of file qmetatype.h.
References begin(), and output.
QPixelFormat Q_GUI_EXPORT QtPrivate::QPixelFormat_createYUV | ( | QPixelFormat::YUVLayout | yuvLayout, |
uchar | alphaSize, | ||
QPixelFormat::AlphaUsage | alphaUsage, | ||
QPixelFormat::AlphaPosition | alphaPosition, | ||
QPixelFormat::AlphaPremultiplied | premultiplied, | ||
QPixelFormat::TypeInterpretation | typeInterpretation, | ||
QPixelFormat::ByteOrder | byteOrder ) |
Definition at line 492 of file qpixelformat.cpp.
References QPixelFormat::IMC1, QPixelFormat::IMC2, QPixelFormat::IMC3, QPixelFormat::IMC4, QPixelFormat::NV12, QPixelFormat::NV21, QPixelFormat::UYVY, QPixelFormat::Y16, QPixelFormat::Y8, QPixelFormat::YUV, QPixelFormat::YUV411, QPixelFormat::YUV420P, QPixelFormat::YUV420SP, QPixelFormat::YUV422, QPixelFormat::YUV444, QPixelFormat::YUYV, and QPixelFormat::YV12.
Referenced by QPixelFormat::qPixelFormatYuv().
qsizetype QtPrivate::qset_erase_if | ( | QSet< T > & | set, |
Predicate & | pred ) |
Definition at line 398 of file qcontainertools_impl.h.
Referenced by erase_if(), and QSet< T >::removeIf().
|
inlinenoexcept |
Definition at line 1581 of file qstring.h.
References qStringLikeToArg().
|
inlinenoexcept |
Definition at line 1579 of file qstring.h.
References qStringLikeToArg(), and qToStringViewIgnoringNull().
Referenced by QStringView::arg(), QLatin1StringView::arg(), qStringLikeToArg(), qStringLikeToArg(), qStringLikeToArg(), and qStringLikeToArg().
|
inlineconstexprnoexcept |
Definition at line 1582 of file qstring.h.
References qStringLikeToArg().
|
inlineconstexprnoexcept |
Definition at line 1580 of file qstring.h.
References qStringLikeToArg().
bool QtPrivate::QStringList_contains | ( | const QStringList * | that, |
QLatin1StringView | str, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 351 of file qstringlist.cpp.
References str, and stringList_contains().
bool QtPrivate::QStringList_contains | ( | const QStringList * | that, |
QStringView | str, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 333 of file qstringlist.cpp.
References str, and stringList_contains().
Referenced by QStringList::QMutableStringListIterator().
QStringList QtPrivate::QStringList_filter | ( | const QStringList & | that, |
const QStringMatcher & | matcher ) |
Definition at line 279 of file qstringlist.cpp.
References matcher.
QStringList QtPrivate::QStringList_filter | ( | const QStringList & | that, |
QLatin1StringView | needle, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 295 of file qstringlist.cpp.
References filter_helper().
QStringList QtPrivate::QStringList_filter | ( | const QStringList * | that, |
QStringView | str, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 256 of file qstringlist.cpp.
References filter_helper(), and str.
Referenced by QStringList::QMutableStringListIterator().
qsizetype QtPrivate::QStringList_indexOf | ( | const QStringList & | that, |
QLatin1StringView | str, | ||
qsizetype | from, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 628 of file qstringlist.cpp.
References indexOf_helper().
qsizetype QtPrivate::QStringList_indexOf | ( | const QStringList & | that, |
QStringView | str, | ||
qsizetype | from, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 622 of file qstringlist.cpp.
References indexOf_helper().
Referenced by QStringList::QMutableStringListIterator().
QString QtPrivate::QStringList_join | ( | const QStringList & | list, |
QLatin1StringView | sep ) |
Definition at line 521 of file qstringlist.cpp.
References accumulatedSize(), QList< T >::begin(), QList< T >::end(), QList< T >::isEmpty(), it, list, QString::reserve(), and sep.
QString QtPrivate::QStringList_join | ( | const QStringList * | that, |
const QChar * | sep, | ||
qsizetype | seplen ) |
Definition at line 499 of file qstringlist.cpp.
References accumulatedSize(), i, QString::reserve(), and sep.
QString QtPrivate::QStringList_join | ( | const QStringList * | that, |
QStringView | sep ) |
Definition at line 542 of file qstringlist.cpp.
References QStringList_join(), and sep.
Referenced by QStringList::QMutableStringListIterator(), and QStringList_join().
qsizetype QtPrivate::QStringList_lastIndexOf | ( | const QStringList & | that, |
QLatin1StringView | str, | ||
qsizetype | from, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 668 of file qstringlist.cpp.
References lastIndexof_helper().
qsizetype QtPrivate::QStringList_lastIndexOf | ( | const QStringList & | that, |
QStringView | str, | ||
qsizetype | from, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 674 of file qstringlist.cpp.
References lastIndexof_helper().
Referenced by QStringList::QMutableStringListIterator().
qsizetype QtPrivate::QStringList_removeDuplicates | ( | QStringList * | that | ) |
Definition at line 750 of file qstringlist.cpp.
Referenced by QStringList::QMutableStringListIterator().
void QtPrivate::QStringList_replaceInStrings | ( | QStringList * | that, |
QStringView | before, | ||
QStringView | after, | ||
Qt::CaseSensitivity | cs ) |
Definition at line 412 of file qstringlist.cpp.
References QStringView::data(), i, j, and QStringView::size().
Referenced by QStringList::QMutableStringListIterator().
void QtPrivate::QStringList_sort | ( | QStringList * | that, |
Qt::CaseSensitivity | cs ) |
\fn void QStringList::sort(Qt::CaseSensitivity cs) Sorts the list of strings in ascending order.
! [comparison-case-sensitivity] If cs is \l Qt::CaseSensitive (the default), the string comparison is case sensitive; otherwise the comparison is case insensitive. ! [comparison-case-sensitivity]
Sorting is performed using the STL's std::sort() algorithm, which averages \l{linear-logarithmic time}, i.e. O(\e{n} log \e{n}). If you want to sort your strings in an arbitrary order, consider using the QMap class. For example, you could use a QMap<QString, QString> to create a case-insensitive ordering (e.g. with the keys being lower-case versions of the strings, and the values being the strings), or a QMap<int, QString> to sort the strings by some integer index.
Definition at line 209 of file qstringlist.cpp.
References Qt::CaseInsensitive, Qt::CaseSensitive, s1, and s2.
Referenced by QStringList::QMutableStringListIterator().
|
inline |
Definition at line 181 of file qstringalgorithms.h.
References qstrnlen(), and str.
Referenced by lengthHelperContainer().
char QtPrivate::qt_getEnumMetaObject | ( | const T & | ) |
References qt_getEnumMetaObject().
Referenced by qt_getEnumMetaObject(), and QtPrivate::MetaObjectForType< T, typename std::enable_if< IsQEnumHelper< T >::Value >::type >::value().
|
constexpr |
Definition at line 2612 of file qmetatype.h.
References qTryMetaTypeInterfaceForType().
Referenced by qTryMetaTypeInterfaceForType().
|
constexprnoexcept |
|
constexprnoexcept |
|
noexcept |
Searches case-insensitively for character c in the string str and returns a pointer to it. Iif the character is not found, this function returns a pointer to the end of the string – that is, {str.end()}.
Definition at line 775 of file qstring.cpp.
References QString::begin(), ch, QString::end(), foldCase(), it, and str.
Referenced by findString().
|
noexcept |
Searches for character c in the string str and returns a pointer to it. Unlike strchr() and wcschr() (but like glibc's strchrnul()), if the character is not found, this function returns a pointer to the end of the string – that is, {str.end()}.
Definition at line 687 of file qstring.cpp.
References i, next, qCountTrailingZeroBits(), QString::size(), str, and QString::utf16().
Referenced by decode(), findString(), qustrnlen(), and QString::replace().
|
noexcept |
Definition at line 658 of file qstring.cpp.
References str.
Referenced by QString::QString(), and QString::fromUtf16().
Definition at line 673 of file qstring.cpp.
References qustrchr(), and str.
Referenced by lengthHelperContainer().
QDataStream & QtPrivate::readArrayBasedContainer | ( | QDataStream & | s, |
Container & | c ) |
Definition at line 286 of file qdatastream.h.
References i.
Referenced by operator<<().
QDataStream & QtPrivate::readAssociativeContainer | ( | QDataStream & | s, |
Container & | c ) |
Definition at line 337 of file qdatastream.h.
References i.
Referenced by QHash< Key, T >::operator<<(), QMultiHash< Key, T >::operator<<(), operator<<(), and operator<<().
QDataStream & QtPrivate::readListBasedContainer | ( | QDataStream & | s, |
Container & | c ) |
Definition at line 312 of file qdatastream.h.
References i.
Referenced by operator<<().
void QtPrivate::reserveIfForwardIterator | ( | Container * | , |
InputIterator | , | ||
InputIterator | ) |
Definition at line 282 of file qcontainertools_impl.h.
Referenced by QHash< Key, T >::QHash(), QMultiHash< Key, T >::QMultiHash(), QSet< T >::QSet(), and QVarLengthArray< T, Prealloc >::QVarLengthArray().
void QtPrivate::reserveIfForwardIterator | ( | Container * | c, |
ForwardIterator | f, | ||
ForwardIterator | l ) |
Definition at line 289 of file qcontainertools_impl.h.
Q_CORE_EXPORT void QtPrivate::restoreBindingStatus | ( | BindingEvaluationState * | status | ) |
Definition at line 2362 of file qproperty.cpp.
References bindingStatus.
Referenced by QtQuickPrivate::beginDeferred(), and QtQuickPrivate::completeDeferred().
|
inlinestatic |
Definition at line 21 of file qv4compiler.cpp.
References Q_ASSERT.
Referenced by QV4::Compiler::StringTableGenerator::serialize(), QV4::Compiler::JSUnitGenerator::writeBlock(), and QV4::Compiler::JSUnitGenerator::writeFunction().
auto QtPrivate::sequential_erase | ( | Container & | c, |
const T & | t ) |
Definition at line 372 of file qcontainertools_impl.h.
References sequential_erase_if().
Referenced by erase(), and sequential_erase_with_copy().
auto QtPrivate::sequential_erase_if | ( | Container & | c, |
Predicate & | pred ) |
Definition at line 335 of file qcontainertools_impl.h.
References it.
Referenced by erase_if(), QList< T >::removeIf(), QVLABase< T >::removeIf(), and sequential_erase().
auto QtPrivate::sequential_erase_one | ( | Container & | c, |
const T & | t ) |
Definition at line 387 of file qcontainertools_impl.h.
References it.
Referenced by QList< T >::removeOne(), and QVLABase< T >::removeOne().
auto QtPrivate::sequential_erase_with_copy | ( | Container & | c, |
const T & | t ) |
Definition at line 380 of file qcontainertools_impl.h.
References sequential_erase().
Referenced by QList< T >::removeAll(), and QVLABase< T >::removeAll().
Q_CORE_EXPORT bool QtPrivate::shouldLogToStderr | ( | ) |
Returns true if logging stderr
should be ensured.
This is normally the case if stderr
has a console attached, but may be overridden by the user by setting the QT_FORCE_STDERR_LOGGING environment variable to 1
.
Definition at line 306 of file qlogging.cpp.
References qEnvironmentVariableIntValue(), and stderrHasConsoleAttached().
|
noexcept |
Definition at line 2934 of file qbytearray.cpp.
Referenced by QByteArray::startsWith(), QByteArrayView::startsWith(), QLatin1StringView::startsWith(), QStringView::startsWith(), QLatin1StringView::startsWith(), QStringView::startsWith(), QLatin1StringView::startsWith(), QString::startsWith(), and QStringView::startsWith().
|
related |
Definition at line 9830 of file qstring.cpp.
|
noexcept |
Definition at line 9825 of file qstring.cpp.
|
noexcept |
Definition at line 9820 of file qstring.cpp.
|
noexcept |
Definition at line 9815 of file qstring.cpp.
Q_CORE_EXPORT BindingEvaluationState * QtPrivate::suspendCurrentBindingStatus | ( | ) |
Definition at line 2355 of file qproperty.cpp.
References bindingStatus, and ret.
Referenced by QtQuickPrivate::beginDeferred(), and QtQuickPrivate::completeDeferred().
|
constexprnoexcept |
Definition at line 133 of file qshareddata_impl.h.
|
noexcept |
Definition at line 4049 of file qbytearray.cpp.
References qt_asciiToDouble(), and WhitespacesAllowed.
Referenced by QByteArrayView::toDouble(), and QLatin1StringView::toDouble().
|
noexcept |
Definition at line 4088 of file qbytearray.cpp.
References QLocaleData::convertDoubleToFloat(), ok, and toDouble().
Referenced by QByteArrayView::toFloat(), and QLatin1StringView::toFloat().
|
inlinestatic |
Definition at line 80 of file qbytearrayalgorithms.h.
References base, ok, toSignedInteger(), and toUnsignedInteger().
auto QtPrivate::toSignedInteger | ( | QByteArrayView | data, |
int | base ) |
Definition at line 3739 of file qbytearray.cpp.
References base, QLocaleData::bytearrayToLongLong(), and qWarning.
Referenced by toIntegral().
auto QtPrivate::toUnsignedInteger | ( | QByteArrayView | data, |
int | base ) |
Definition at line 3756 of file qbytearray.cpp.
References base, QLocaleData::bytearrayToUnsLongLong(), and qWarning.
Referenced by toIntegral().
|
noexcept |
Definition at line 3659 of file qbytearray.cpp.
References QStringAlgorithms< StringType >::trimmed_helper_positions(), and view.
Referenced by QByteArrayView::trimmed(), QLatin1StringView::trimmed(), and QStringView::trimmed().
|
related |
Definition at line 6179 of file qstring.cpp.
|
noexcept |
Definition at line 6174 of file qstring.cpp.
auto QtPrivate::volatilePreDecrement | ( | T & | x | ) |
Definition at line 42 of file qvolatile_p.h.
auto QtPrivate::volatilePreIncrement | ( | T & | x | ) |
Definition at line 34 of file qvolatile_p.h.
|
inline |
Definition at line 37 of file qforeach.h.
void QtPrivate::watchContinuation | ( | const QObject * | context, |
Continuation && | c, | ||
QFutureInterfaceBase & | fi ) |
Definition at line 593 of file qfuture_impl.h.
References context, and watchContinuationImpl().
Referenced by QtPrivate::Continuation< Function, ResultType, ParentResultType >::create(), QtPrivate::FailureHandler< Function, ResultType >::create(), and QtPrivate::CanceledHandler< Function, ResultType >::create().
void QtPrivate::watchContinuationImpl | ( | const QObject * | context, |
QtPrivate::QSlotObjectBase * | slotObj, | ||
QFutureInterfaceBase & | fi ) |
Definition at line 56 of file qfutureinterface.cpp.
References args, QObject::connect(), context, QObject::deleteLater(), QObject::destroyed(), emit, lock, Q_ASSERT, Q_UNUSED, QObjectContinuationWrapper::run(), and watcher.
Referenced by watchContinuation().
QFuture< OutputSequence > QtPrivate::whenAllImpl | ( | Futures &&... | futures | ) |
Definition at line 1147 of file qfuture_impl.h.
References addCompletionHandlers(), and context.
QFuture< OutputSequence > QtPrivate::whenAllImpl | ( | InputIt | first, |
InputIt | last ) |
Definition at line 1124 of file qfuture_impl.h.
References context, it, and QtFuture::makeReadyValueFuture().
Referenced by QtFuture::whenAll().
QFuture< std::variant< std::decay_t< Futures >... > > QtPrivate::whenAnyImpl | ( | Futures &&... | futures | ) |
Definition at line 1188 of file qfuture_impl.h.
References addCompletionHandlers(), and context.
QFuture< QtFuture::WhenAnyResult< typename Future< ValueType >::type > > QtPrivate::whenAnyImpl | ( | InputIt | first, |
InputIt | last ) |
Definition at line 1160 of file qfuture_impl.h.
References context, it, and QtFuture::makeReadyValueFuture().
Referenced by QtFuture::whenAny().
QDataStream & QtPrivate::writeAssociativeContainer | ( | QDataStream & | s, |
const Container & | c ) |
Definition at line 374 of file qdatastream.h.
References QSet< T >::constBegin(), and it.
QDataStream & QtPrivate::writeAssociativeMultiContainer | ( | QDataStream & | s, |
const Container & | c ) |
Definition at line 389 of file qdatastream.h.
References QSet< T >::constBegin(), i, it, and next.
QDataStream & QtPrivate::writeSequentialContainer | ( | QDataStream & | s, |
const Container & | c ) |
Definition at line 363 of file qdatastream.h.
|
inlineconstexpr |
Definition at line 70 of file qlocale_p.h.
|
inlineconstexpr |
Definition at line 216 of file qpropertyprivate.h.
|
inlineconstexpr |
Definition at line 188 of file qqmlpropertybinding_p.h.
|
inlineconstexpr |
Definition at line 110 of file qtconcurrentfunctionwrappers.h.
|
constexpr |
Definition at line 389 of file qobjectdefs_impl.h.
|
staticconstexpr |
Definition at line 31 of file qwaitcondition_p.h.
|
inlineconstexpr |
Definition at line 102 of file qrunnable.h.
|
constexpr |
Definition at line 423 of file qcontainertools_impl.h.
|
inlineconstexpr |
Definition at line 107 of file qrunnable.h.
|
inlineconstexpr |
Definition at line 34 of file qtconcurrentcompilertest.h.
|
constexpr |
Definition at line 444 of file qcomparehelpers.h.
|
inlineconstexpr |
Definition at line 126 of file qtconcurrentfunctionwrappers.h.
|
constexpr |
Definition at line 440 of file qcomparehelpers.h.
|
inlineconstexpr |
Definition at line 24 of file qtconcurrentcompilertest.h.
|
inlineconstexpr |
Definition at line 116 of file qtconcurrentfunctionwrappers.h.
|
inlineconstexpr |
Definition at line 97 of file qfuture_impl.h.
|
inlineconstexpr |
Definition at line 248 of file qfuture_impl.h.
|
inlineconstexpr |
Definition at line 251 of file qfuture_impl.h.
|
inlineconstexpr |
Definition at line 1272 of file qmetatype.h.
|
inlineconstexpr |
Definition at line 232 of file qqmllist.h.
|
constexpr |
Definition at line 1275 of file qmetatype.h.
|
constexpr |
Definition at line 1277 of file qmetatype.h.
Definition at line 59 of file qcontainerfwd.h.
Referenced by QTypedArrayData< T >::max_size(), and QVLABase< T >::max_size().
|
constexpr |
Definition at line 115 of file qarraydata.h.
|
inlineconstexpr |
Definition at line 34 of file qtypeinfo.h.
|
inlineconstexpr |
Definition at line 62 of file qvariant.h.
|
inlineconstexpr |
Definition at line 43 of file qtypeinfo.h.
|
inlineconstexpr |
Definition at line 311 of file qhashfunctions.h.
|
inlineconstexpr |
Definition at line 302 of file qhashfunctions.h.