Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qohosplatformdrag.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QOHOSPLATFORMDRAG_H
5#define QOHOSPLATFORMDRAG_H
6
7#include <memory>
8#include <qpa/qplatformdrag.h>
9
10QT_BEGIN_NAMESPACE
11
12class QOhosPlatformDrag : public QPlatformDrag
13{
14public:
15 QOhosPlatformDrag();
16 ~QOhosPlatformDrag() override;
17
18 virtual void handlePreDrop() = 0;
19
20 virtual void updateDropAction(Qt::DropAction dropAction) = 0;
21};
22
24
25QT_END_NAMESPACE
26
27#endif
static QOhosPlatformIntegration * instance()
QOhosInputMethodEventHandler * inputMethodEventHandler() const
bool eventFilter(QObject *watched, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
Qt::DropAction drag(QDrag *drag) override
void updateDropAction(Qt::DropAction dropAction) override
Combined button and popup list for selecting options.
std::shared_ptr< void > installDragEventFilter()
QOhosView * findInitiatorViewForDragOrNull()
std::unique_ptr< QOhosPlatformDrag > makeQOhosPlatformDrag()