Skip to content

Timeline

Vertical event timeline.

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

Category: Collections & data · Library: v2.80

← Component index

Gallery: Timelinesrc/gallery/pages/TimelinePage.qml

Extends Control.

Example

Timeline {
    id: timeline
    model: events
}

// --- API ---
// signals: onItemClicked, onSelectionChanged
// methods: select(index), next(), previous()
// timeline.select(index)
// timeline.next()
// timeline.previous()

Notes

Vertical timeline of events; model items with title/time/description.

API

Properties

Name Type Description
model var Data model / item list for this control
currentIndex int Selected index
selectedIndex alias Selected index alias
railWidth real Track / rail width
nodeSize real Node / marker size
isInteractive bool Alias of interactive

Signals

Signature Description
itemClicked(int index) Emitted when an item is clicked
selectionChanged(int index) Selection changed

Methods

Signature Description
select(index) Select item by index
next() Advance to next
previous() Go to previous

Inherited from Control

Also available (base type / Qt Quick Controls):

  • padding
  • font
  • background / contentItem

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