Skip to content

SessionTimeout

Idle timer with warning + timeout signals (2.72).

import QWinUI3.Extras · src/extras/QWinUI3/Extras/SessionTimeout.qml

Category: Date & time · Library: v2.80

← Component index

Extends QtObject.

Example

SessionTimeout {
    idleMs: 5 * 60 * 1000
    warningMs: 30 * 1000
    onWarning: tip.open()
    onTimedOut: logout()
}
// Call poke() on user activity (mouse/key handlers in the shell).

Notes

Shell owns activity hooks — this type only times out.

API

Properties

Name Type Description
enabled bool
idleMs int
warningMs int
warningActive bool
remainingMs int

Signals

Signature Description
warning()
timedOut()
resumed()

Methods

Signature Description
poke()
reset()

Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.