Obsolete Members for Qt
Die folgenden Mitglieder der Klasse Qt sind veraltet. Sie werden bereitgestellt, um alten Quellcode funktionsfähig zu halten. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Funktionen
(deprecated) | |
(deprecated) | |
(since 6.7, deprecated in 6.8) Qt::strong_ordering | compareThreeWay(const LeftType *lhs, const RightType *rhs) |
(deprecated) QKeyCombination | operator+(Qt::Key key, Qt::KeyboardModifier modifier) |
(deprecated) QKeyCombination | operator+(Qt::Key key, Qt::KeyboardModifiers modifiers) |
(deprecated) QKeyCombination | operator+(Qt::Key key, Qt::Modifier modifier) |
(deprecated) QKeyCombination | operator+(Qt::Key key, Qt::Modifiers modifiers) |
(deprecated) QKeyCombination | operator+(Qt::KeyboardModifier modifier, Qt::Key key) |
(deprecated) QKeyCombination | operator+(Qt::KeyboardModifiers modifiers, Qt::Key key) |
(deprecated) QKeyCombination | operator+(Qt::Modifier modifier, Qt::Key key) |
(deprecated) QKeyCombination | operator+(Qt::Modifiers modifiers, Qt::Key key) |
Dokumentation der Funktionen
[constexpr noexcept, deprecated]
QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifier modifier)
[constexpr noexcept, deprecated]
QKeyCombination operator+(Qt::Key key, Qt::Modifier modifier)
[constexpr noexcept, deprecated]
QKeyCombination operator+(Qt::KeyboardModifier modifier, Qt::Key key)
[constexpr noexcept, deprecated]
QKeyCombination operator+(Qt::Modifier modifier, Qt::Key key)
Diese Funktion ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Verwenden Sie stattdessen operator|.
Gibt ein QKeyCombination Objekt zurück, das die Kombination von key mit dem Modifikator modifier darstellt.
[constexpr noexcept, deprecated]
QKeyCombination operator+(Qt::Key key, Qt::KeyboardModifiers modifiers)
[constexpr noexcept, deprecated]
QKeyCombination operator+(Qt::Key key, Qt::Modifiers modifiers)
[constexpr noexcept, deprecated]
QKeyCombination operator+(Qt::KeyboardModifiers modifiers, Qt::Key key)
[constexpr noexcept, deprecated]
QKeyCombination operator+(Qt::Modifiers modifiers, Qt::Key key)
Diese Funktion ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Verwenden Sie stattdessen operator|.
Gibt ein QKeyCombination Objekt zurück, das die Kombination von key mit den Modifikatoren modifiers darstellt.
[constexpr noexcept, since 6.7, deprecated in 6.8]
template <typename LeftType, typename RightType, Qt::if_compatible_pointers<LeftType, RightType> = true> Qt::strong_ordering compareThreeWay(const LeftType *lhs, const RightType *rhs)
Diese Funktion ist seit 6.8 veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Verpacken Sie die Zeiger in Qt::totally_ordered_wrapper und verwenden Sie stattdessen die entsprechende Überladung von Qt::compareThreeWay().
Dies ist eine überladene Funktion.
Implementiert den Drei-Wege-Vergleich von Zeigern.
Hinweis: Diese Funktion nimmt an der Überladungsauflösung teil, wenn LeftType
und RightType
der gleiche Typ sind, oder Basis- und abgeleitete Typen. Sie wird auch verwendet, um jeden Zeiger auf std::nullptr_t
zu vergleichen.
Gibt eine Instanz von Qt::strong_ordering zurück, die die Beziehung zwischen lhs und rhs darstellt.
Diese Funktion wurde in Qt 6.7 eingeführt.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.