KPIM::OverlayWidget Class
| Header: | #include <KPIM/OverlayWidget> |
| CMake: | find_package(KPim6Libkdepim REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::Libkdepim) |
Public Functions
| OverlayWidget(QWidget *alignWidget, QWidget *parent) | |
| virtual | ~OverlayWidget() override |
| QWidget * | alignWidget() const |
| void | setAlignWidget(QWidget *alignWidget) |
Detailed Description
This is a widget that can align itself with another one, without using a layout, so that it can actually be on top of other widgets. Currently the only supported type of alignment is "right aligned, on top of the other widget".
Member Function Documentation
OverlayWidget::OverlayWidget(QWidget *alignWidget, QWidget *parent)
Constructor for OverlayWidget. alignWidget the widget to align with parent the parent widget
[override virtual noexcept] OverlayWidget::~OverlayWidget()
Destructor for OverlayWidget.
QWidget *OverlayWidget::alignWidget() const
Returns the widget this overlay is aligned with. Returns the aligned widget
See also setAlignWidget().
void OverlayWidget::setAlignWidget(QWidget *alignWidget)
Sets the widget to align this overlay with. alignWidget the widget to align with
See also alignWidget().