Obsolete Members for QTabletEvent
クラスQTabletEvent の以下のメンバは非推奨である。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。
パブリック関数
(deprecated in 6.0) QPoint | globalPos() const |
(deprecated in 6.0) const QPointF | globalPosF() const |
(deprecated in 6.0) int | globalX() const |
(deprecated in 6.0) int | globalY() const |
(deprecated in 6.0) QPoint | pos() const |
(deprecated in 6.0) const QPointF | posF() const |
(deprecated in 6.0) qint64 | uniqueId() const |
(deprecated in 6.0) int | x() const |
(deprecated in 6.0) int | y() const |
メンバ関数ドキュメント
[deprecated in 6.0]
QPoint QTabletEvent::globalPos() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにglobalPosition().toPoint() を使用してください。
イベント発生時のデバイスのグローバル位置を返します。これは、X11のような非同期ウィンドウズ・システムでは重要です。マウス・イベントに応じてウィジェットを移動するたびに、globalPos()が現在の位置QCursor::pos()と大きく異なることがあります。
globalX() およびglobalY()も 参照のこと。
[deprecated in 6.0]
const QPointF QTabletEvent::globalPosF() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強く推奨する。
代わりにglobalPosition() を使用してください。イベント発生時のデバイスのグローバル位置を返します。これは、X11のような非同期ウィンドウズ・システムでは重要です。マウス・イベントに応じてウィジェットを移動させるたびに、globalPosF()が現在の位置QCursor::pos()と大きく異なることがあります。
posF()も参照 。
[deprecated in 6.0]
int QTabletEvent::globalX() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにglobalPosition().x() を使用してください。
イベント発生時のマウスポインタのグローバル x 位置を返します。
globalY() およびglobalPos()も参照して ください。
[deprecated in 6.0]
int QTabletEvent::globalY() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにglobalPosition() やy() を使用してください。
イベント発生時のタブレットデバイスのグローバルy位置を返します。
[deprecated in 6.0]
QPoint QTabletEvent::pos() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにposition().toPoint() を使用してください。
イベントを受け取ったウィジェットからの相対的なデバイスの位置を返します。
マウス・イベントに応じてウィジェットを移動する場合は、この関数の代わりにglobalPos() を使用してください。
x(),y(),globalPos()も参照してください 。
[deprecated in 6.0]
const QPointF QTabletEvent::posF() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強く推奨する。
代わりにposition() を使用してください。
イベントを受け取ったウィジェットからの相対的なデバイスの位置を返します。
マウスイベントに応じてウィジェットを移動させる場合は、この関数の代わりにglobalPosF() を使用してください。
globalPosF()も参照してください 。
[deprecated in 6.0]
qint64 QTabletEvent::uniqueId() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにpointingDevice().uniqueId() を使用してください。
タブレットで同時に使用されている複数のデバイスを区別できるようにするために、現在のデバイスの一意のIDを返します。
この機能のサポートはタブレットに依存します。
同じデバイスでもOSによって値が異なる場合があります。
Linux用Wacomドライバーの後のバージョンでは、ID情報が報告されるようになりました。一意のIDをサポートするタブレットをお持ちで、Linux上で情報を取得できない場合は、ドライバのアップグレードを検討してください。
Qt 4.2では、ユニークIDはペンの向きに関係なく同じです。以前のバージョンでは、消しゴム側とペン側のスタイラスを使用した場合、OSによっては異なる値が報告されていました。
pointerType()も参照してください 。
[deprecated in 6.0]
int QTabletEvent::x() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにposition().x() を使用してください。
イベントを受信したウィジェットからの相対的なデバイスの x 位置を返します。
[deprecated in 6.0]
int QTabletEvent::y() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりにposition().y() を使用してください。
イベントを受信したウィジェットからの相対的なデバイスの y 位置を返します。
© 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.