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()로 초기화되는데, 이는 적절하지 않을 수 있습니다. 전역 위치를 명시적으로 지정하려면 다른 생성자를 사용하세요.
© 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.