KDDockWidgets API Documentation
1.4
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
f
i
l
m
o
q
r
s
t
w
Functions
Typedefs
Enumerations
Enumerator
a
c
f
l
m
r
s
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
y
~
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
w
x
y
~
Variables
Typedefs
Enumerations
Enumerator
c
f
i
o
Properties
Files
File List
File Members
All
a
b
c
d
f
h
i
k
l
m
o
p
q
r
s
v
w
Functions
Variables
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
source
src
FocusScope.h
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 2019-2021 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5
Author: Sérgio Martins <sergio.martins@kdab.com>
6
7
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9
Contact KDAB at <info@kdab.com> for commercial licensing options.
10
*/
11
19
#ifndef KD_DOCKWIDGETS_FOCUSSCOPE_H
20
#define KD_DOCKWIDGETS_FOCUSSCOPE_H
21
22
#include "docks_export.h"
23
#include "
QWidgetAdapter.h
"
24
25
namespace
KDDockWidgets
{
27
class
DOCKS_EXPORT
FocusScope
28
{
29
Q_DISABLE_COPY(
FocusScope
)
30
public
:
32
explicit
FocusScope
(QWidgetAdapter *thisWidget);
33
virtual
~
FocusScope
();
34
38
bool
isFocused()
const
;
39
43
WidgetType
*focusedWidget()
const
;
44
48
void
focus(
Qt::FocusReason
=
Qt::OtherFocusReason
);
49
50
/*Q_SIGNALS:*/
51
protected
:
53
virtual
void
isFocusedChangedCallback
() = 0;
54
virtual
void
focusedWidgetChangedCallback
() = 0;
55
56
private
:
57
class
Private;
58
Private *
const
d;
59
};
60
}
61
62
#endif
KDDockWidgets::FocusScope::focusedWidgetChangedCallback
virtual void focusedWidgetChangedCallback()=0
KDDockWidgets::FocusScope::isFocusedChangedCallback
virtual void isFocusedChangedCallback()=0
reimplement in the 1st QObject derived class
QWidget
KDDockWidgets::FocusScope
Allows to implement a similar functionality to QtQuick's FocusScope item, in QtWidgets.
Definition:
FocusScope.h:28
QWidgetAdapter.h
Abstraction for supporting both QtWidgets and QtQuick.
Qt::FocusReason
FocusReason
KDDockWidgets
Definition:
Config.cpp:36
© 2019-2021 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated on Mon Nov 15 2021 00:17:21 for KDDockWidgets API Documentation by doxygen 1.8.20