![]() |
KDDockWidgets API Documentation 2.0
|
Allows to implement a similar functionality to QtQuick's FocusScope item, in QtWidgets. More...
#include <FocusScope.h>

Public Member Functions | |
| FocusScope (View *thisView) | |
| constructor | |
| virtual | ~FocusScope () |
| void | focus (Qt::FocusReason=Qt::OtherFocusReason) |
| Sets focus on this scope. | |
| bool | isFocused () const |
| Returns true if this FocusScope is focused. This is similar to the QWidget::hasFocus(), except that it counts with the children being focused too. i.e: If any child is focused then this FocusScope has focus too. | |
Protected Member Functions | |
| virtual void | focusedWidgetChangedCallback ()=0 |
| virtual void | isFocusedChangedCallback ()=0 |
| reimplement in the 1st QObject derived class | |
Allows to implement a similar functionality to QtQuick's FocusScope item, in QtWidgets.
Definition at line 30 of file FocusScope.h.
|
explicit |
constructor
Definition at line 76 of file FocusScope.cpp.
|
virtual |
Definition at line 81 of file FocusScope.cpp.
| void FocusScope::focus | ( | Qt::FocusReason | reason = Qt::OtherFocusReason | ) |
Sets focus on this scope.
This will call QWidget::focus() on the last QWidget that was focused in this scope.
Definition at line 91 of file FocusScope.cpp.
References Qt::NoFocus.
|
protectedpure virtual |
| bool FocusScope::isFocused | ( | ) | const |
Returns true if this FocusScope is focused. This is similar to the QWidget::hasFocus(), except that it counts with the children being focused too. i.e: If any child is focused then this FocusScope has focus too.
Definition at line 86 of file FocusScope.cpp.
Referenced by KDDockWidgets::Core::TitleBar::isFocused(), and KDDockWidgets::QtWidgets::Stack::mousePressEvent().
|
protectedpure virtual |
reimplement in the 1st QObject derived class
Implemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Group_wrapper, and KDDockWidgets::Core::Group.
KDDockWidgets