MonitorOverlay QML Type

A component to display frame-rate information for a given window. More...

Import Statement: import
Since: Qt 5.12

Properties

Detailed Description

The MonitorOverlay provides an item on top of NeptuneWindow to display frame-rate information obtained from FrameTimer.

The following code snippet uses MonitorOverlay:

NeptuneWindow {
    id: root

    MonitorOverlay {
        id: monitorOverlay

        x: root.exposedRect.x
        y: root.exposedRect.y
        title: "System"
        width: root.exposedRect.width - 100
        height: root.exposedRect.height - 50
        fpsVisible: true
        window: root
        z: 9999

        Text {
            text: "Info 1"
        }
        Text {
            text: "Info 2"
        }
        Rectangle {
            color: "green"
            width: 100
            height: 20
        }
    }
}

See also FrameTimer.

Property Documentation

fpsVisible : bool

If true, MonitorOverlay is shown and the frame-rate information is updated automatically.


title : string

This property holds the title of the MonitorOverlay item.


window : Object

The NeptuneWindow to be monitored, from which frame-rate information is gathered.

See also window.


© 2019 Luxoft Sweden AB. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.