TouchSelectionMenuRequest QML Type
터치 선택 메뉴를 표시해 달라는 요청입니다. 더 보기...
Import Statement: | import QtWebEngine |
Since: | QtWebEngine 6.3 |
속성
- accepted : bool
- selectionBounds : rect
상세 설명
터치셀렉션메뉴 요청은 WebEngineView::터치셀렉션메뉴 요청 신호의 인수로 전달됩니다. 요청의 컨텍스트에 대한 추가 정보를 제공합니다. selectionBounds 속성은 요청의 출처를 제공합니다.
요청의 accepted 속성은 요청이 사용자 코드에 의해 처리될지 아니면 기본 터치 선택 메뉴가 표시될지를 나타냅니다.
다음 코드는 사용자 지정 메뉴를 사용하여 요청을 처리합니다:
WebEngineView { id: view // ... onTouchSelectionMenuRequested: function(request) { request.accepted = true; myMenu.x = request.selectionBounds.x; myMenu.y = request.selectionBounds.y; myMenu.trigger.connect(view.triggerWebAction); myMenu.popup(); } // ... }
속성 문서
accepted : bool |
터치 선택 메뉴 요청이 신호 처리기에 의해 처리되었는지 여부를 나타냅니다.
WebEngineView::touchSelectionMenuRequested 에 대한 시그널 핸들러가 실행된 후 속성이 false
인 경우 기본 터치 선택 메뉴가 표시됩니다. 이를 방지하려면 request.accepted
을 true
으로 설정하세요.
기본값은 false
입니다.
참고: 터치 선택 메뉴의 기본 콘텐츠는 요청이 실제로 생성된 웹 요소에 따라 달라집니다.
selectionBounds : rect |
터치 텍스트 선택에서 바인딩된 사각형의 위치입니다.
© 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.