PlasmaQuick::PlasmaWindow Class
Creates a QQuickWindow themed in a Plasma style with background. More...
- Header:
#include <PlasmaQuick/PlasmaWindow> - CMake:
find_package(PlasmaQuick REQUIRED)
target_link_libraries(mytarget PRIVATE Plasma::PlasmaQuick) - Inherits: QQuickWindow
- Inherited By: PlasmaQuick::PopupPlasmaWindow
List of all members, including inherited members
Public Types
Properties
- backgroundHints : BackgroundHints
- borders : Qt::Edges
- [read-only] bottomPadding : qreal
- [read-only] leftPadding : qreal
- mainItem : QQuickItem*
- [read-only] rightPadding : qreal
- [read-only] topPadding : qreal
Public Functions
- QMargins padding() const
- void setBorders(Qt::Edges bordersToShow)
- void setMainItem(QQuickItem *mainItem)
Detailed Description
Member Type Documentation
enum PlasmaWindow::BackgroundHints
| Constant | Value | Description |
|---|---|---|
PlasmaQuick::PlasmaWindow::StandardBackground |
0 |
The standard background from the theme is drawn |
PlasmaQuick::PlasmaWindow::SolidBackground |
1 |
The solid version of the background is preferred |
Property Documentation
backgroundHints : BackgroundHints
Defines the background used for the window
Access functions:
PlasmaQuick::PlasmaWindow::BackgroundHintsbackgroundHints() constvoidsetBackgroundHints(PlasmaQuick::PlasmaWindow::BackgroundHintshints)
Notifier signal:
voidbackgroundHintsChanged()
borders : Qt::Edges
Tells what borders are enabled of its background
Access functions:
Qt::Edgesborders()voidsetBorders(Qt::EdgesbordersToShow)
Notifier signal:
voidbordersChanged()
[read-only] bottomPadding : qreal
Access functions:
qrealbottomPadding() const
Notifier signal:
voidpaddingChanged()
[read-only] leftPadding : qreal
Access functions:
qrealleftPadding() const
Notifier signal:
voidpaddingChanged()
mainItem : QQuickItem*
The main QML item that will be displayed in the Dialog
Access functions:
QQuickItem*mainItem() constvoidsetMainItem(QQuickItem*mainItem)
Notifier signal:
voidmainItemChanged()
[read-only] rightPadding : qreal
Access functions:
qrealrightPadding() const
Notifier signal:
voidpaddingChanged()
[read-only] topPadding : qreal
Access functions:
qrealtopPadding() const
Notifier signal:
voidpaddingChanged()
Member Function Documentation
QMargins PlasmaWindow::padding() const
Returns the padding that are placed around the mainItem When setting size hints on the window this should be factored in.
void PlasmaWindow::setBorders(Qt::Edges bordersToShow)
Changes which rounded corners are shown on the window. Margins remain the same The default is all borders
Note: Setter function for property borders.
See also borders()
void PlasmaWindow::setMainItem(QQuickItem *mainItem)
The main QML item that will be displayed in the Dialog
Note: Setter function for property mainItem.
See also mainItem()