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
qfocusframe.h
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant reason:default
4
5#ifndef QFOCUSFRAME_H
6#define QFOCUSFRAME_H
7
8#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtWidgets/qwidget.h>
10
11QT_BEGIN_NAMESPACE
12
13
14class QFocusFramePrivate;
15class QStyleOption;
16
17class Q_WIDGETS_EXPORT QFocusFrame : public QWidget
18{
19 Q_OBJECT
20public:
21 QFocusFrame(QWidget *parent = nullptr);
22 ~QFocusFrame();
23
24 void setWidget(QWidget *widget);
25 QWidget *widget() const;
26
27protected:
28 bool event(QEvent *e) override;
29
30 bool eventFilter(QObject *, QEvent *) override;
31 void paintEvent(QPaintEvent *) override;
32 virtual void initStyleOption(QStyleOption *option) const;
33
34private:
35 Q_DECLARE_PRIVATE(QFocusFrame)
36 Q_DISABLE_COPY(QFocusFrame)
37};
38
39QT_END_NAMESPACE
40
41#endif // QFOCUSFRAME_H
The QFocusFrame widget provides a focus frame which can be outside of a widget's normal paintable are...
Definition qfocusframe.h:18
The QStyleHintReturnMask class provides style hints that return a QRegion.