PlasmaQuick::PopupPlasmaWindow Class
Styled Plasma window that can be positioned relative to an existing Item on another window. More...
- Header:
#include <PlasmaQuick/PopupPlasmaWindow> - CMake:
find_package(PlasmaQuick REQUIRED)
target_link_libraries(mytarget PRIVATE Plasma::PlasmaQuick) - Inherits: PlasmaQuick::PlasmaWindow
- Inherited By: PlasmaQuick::AppletPopup
List of all members, including inherited members
Properties
- animated : bool
- [read-only] effectivePopupDirection : Qt::Edge
- floating : bool
- margin : int
- popupDirection : Qt::Edge
- removeBorderStrategy : RemoveBorders
- visualParent : QQuickItem*
Public Functions
Detailed Description
When shown the popup is placed correctly.
On Wayland this is currently an XdgTopLevel with the PlasmaShellSurface used on top. Do not rely on that implementation detail
Property Documentation
animated : bool
Defines whether the popup is animated on show and close. The default is false.
Access functions:
boolanimated() constvoidsetAnimated(boolanimated)
Notifier signal:
voidanimatedChanged()
[read-only] effectivePopupDirection : Qt::Edge
Defines the direction the popup was placed relative to the visualParent. This property is read-only and is updated when the popup is shown. The value whilst the popup is hidden is undefined.
Access functions:
Qt::EdgeeffectivePopupDirection() const
Notifier signal:
voideffectivePopupDirectionChanged()
floating : bool
Defines whether the popup can appear (float) over the parent window. The default is false.
Access functions:
boolfloating() constvoidsetFloating(boolfloating)
Notifier signal:
voidfloatingChanged()
margin : int
If set provides a gap between the parent window and all screen edges
Access functions:
intmargin() constvoidsetMargin(intmargin)
Notifier signal:
voidmarginChanged()
popupDirection : Qt::Edge
Defines the default direction to place the popup relative to the visualParent.
Access functions:
Qt::EdgepopupDirection() constvoidsetPopupDirection(Qt::EdgepopupDirection)
Notifier signal:
voidpopupDirectionChanged()
removeBorderStrategy : RemoveBorders
Defines which borders should be enabled/disabled when the popup is shown. The default is to show all borders
Access functions:
PlasmaQuick::PopupPlasmaWindow::RemoveBordersremoveBorderStrategy() constvoidsetRemoveBorderStrategy(PlasmaQuick::PopupPlasmaWindow::RemoveBordersborders)
Notifier signal:
voidremoveBorderStrategyChanged()
visualParent : QQuickItem*
The anchor item to place the popup relative to.
Access functions:
QQuickItem*visualParent() constvoidsetVisualParent(QQuickItem*parent)
Notifier signal:
voidvisualParentChanged()
Member Function Documentation
PopupPlasmaWindow::PopupPlasmaWindow(const QString &svgPrefix = QStringLiteral("dialogs/background"))
Constructor