PopupWindow: QSWindow

import Quickshell

Popup window. More

Properties

Detailed Description

Popup window that can display in a position relative to a floating or panel window.

Example

The following snippet creates a panel with a popup centered over it.

PanelWindow {
  id: toplevel

  anchors {
    bottom: true
    left: true
    right: true
  }

  PopupWindow {
    parentWindow: toplevel
    relativeX: parentWindow.width / 2 - width / 2
    relativeY: parentWindow.height
    width: 500
    height: 500
    visible: true
  }
}

Property Details

parentWindow: QtObject

The parent window of this popup.

Changing this property reparents the popup.

relativeX: int

The X position of the popup relative to the parent window.

relativeY: int

The Y position of the popup relative to the parent window.

[readonly]

screen: ShellScreen

The screen that the window currently occupies.

This may be modified to move the window to the given screen.

visible: bool

If the window is shown or hidden. Defaults to false.