Obsolete Members for QContextMenuEvent
QContextMenuEvent 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.
공개 함수
(deprecated in 6.4) | QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint &pos) |
멤버 함수 설명
[deprecated in 6.4] QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint &pos)
이 함수는 6.4 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 다른 생성자를 사용하십시오(전역 위치가 필수입니다).
accept 매개변수 플래그가 false로 설정된 컨텍스트 메뉴 이벤트 객체를 생성합니다.
reason 매개변수는 QContextMenuEvent::Mouse 또는 QContextMenuEvent::Keyboard 이어야 합니다.
pos 매개 변수는 수신 위젯을 기준으로 한 마우스 위치를 지정합니다.
globalPos()는 QCursor::pos()로 초기화되는데, 이는 적절하지 않을 수 있습니다. 전역 위치를 명시적으로 지정하려면 다른 생성자를 사용하십시오.
© 2026 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.