QPointingDeviceUniqueId Class

QPointingDeviceUniqueId は、ポインティングデバイスで使用されるタグ付きトークンやスタイラスなどの一意のオブジェクトを識別します。詳細...

ヘッダー #include <QPointingDeviceUniqueId>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui

プロパティ一覧

パブリック関数

QPointingDeviceUniqueId()
bool isValid() const
qint64 numericId() const

静的パブリックメンバー

QPointingDeviceUniqueId fromNumericId(qint64 id)
size_t qHash(QPointingDeviceUniqueId key, size_t seed = 0)
bool operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)
bool operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)

詳細説明

QPointingDeviceUniqueIds は、等しいかどうかを比較することができ、QHash のキーとして使用することができます。デバイスがそのような ID をサポートしている場合は、numericId() を使用して数値 ID にアクセスできます。しかし、将来の拡張では、この関数を使用せず、等号演算子を使用してこの型のオブジェクトを比較する必要があります。

このクラスは整数IDの薄いラッパーです。このクラスは、整数IDの薄いラッパーです。

QEventPointも参照してください

プロパティのドキュメント

[read-only] numericId : const qint64

このプロパティは、タッチポイントで表されるトークンの一意の ID を数値で保持する。

デバイスが数値 ID を提供する場合、isValid() は真を返し、このプロパティは数値 ID を提供する。

ポータブル・コードではこのプロパティの値を使用せず、ポインタを識別するために等号に依存する。

アクセス関数:

qint64 numericId() const

isValid()も参照

メンバ関数のドキュメント

[constexpr noexcept] QPointingDeviceUniqueId::QPointingDeviceUniqueId()

無効な一意なポインタIDを構築する。

[static] QPointingDeviceUniqueId QPointingDeviceUniqueId::fromNumericId(qint64 id)

数値 IDid から一意なポインタ ID を構築する。

[constexpr noexcept] bool QPointingDeviceUniqueId::isValid() const

この一意なポインタIDが有効かどうか、つまり実際のポインタを表しているかどうかを返します。

関連する非会員

[noexcept] size_t qHash(QPointingDeviceUniqueId key, size_t seed = 0)

key のハッシュ値を返す。計算のシードにはseed を使用する。

[noexcept] bool operator!=(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)

2つの一意なポインタIDlhsrhs が異なるポインタを識別しているか (true)、していないか (false)を返す。

[noexcept] bool operator==(QPointingDeviceUniqueId lhs, QPointingDeviceUniqueId rhs)

2つの一意なポインタIDlhsrhs が同じポインタを識別しているか(true)、していないか(false)を返す。

© 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.