WindowManager QML Type

Singlton object to manage all opened windows. More...

Import Statement: import CSDataQuick.Components 1.0

Properties

Methods

Detailed Description

Example:

ListView {
    model: WindowManager.entries
    delegate: Text {
        text: model.modelData.filePath
    }
}

Property Documentation

entries : ListModel

The list of all opened windows. Each list element has the follow properties,

  • filePath - absolute file path this window represents
  • macro - macro expansion used to create this window
  • window - the window instance

Method Documentation

appendWindow(window)

Append an opened window instance window.


closeAllWindow()

Close and delete all opened windows.


closeWindow(window)

Close and delete a window instance window.


Window findWindow(absFilePath, macro)

Search for a window instance opened with absFilePath and macro. It will return the found instance or null otherwise.


printWindow(window)

Grab a screenshot of window and send to printer.

The actual printing is performed by Qt Print Support.

See also QQuickWindow::grabWindow.