• Shotcut QML Scripting API
  • org.shotcut.qml
  • SubtitlesSelectionModel
  • SubtitlesSelectionModel QML Type

    Tracks the selected track and selected subtitle items in the Subtitles dock. More...

    Import Statement: import org.shotcut.qml

    Properties

    Signals

    Methods

    Detailed Description

    SubtitlesSelectionModel is available as the subtitlesSelectionModel context property in the Subtitles dock.

    Property Documentation

    selectedItems : list<var>

    The list of currently selected subtitle item indices (read-only).


    selectedTrackModelIndex : QModelIndex

    The model index of the currently selected track (read-only).


    Signal Documentation

    selectedItemsChanged()

    Emitted when the set of selected subtitle items changes.

    Note: The corresponding handler is onSelectedItemsChanged.


    selectedTrackModelIndexChanged(QModelIndex trackModelIndex)

    Emitted when the selected track changes. trackModelIndex is the new track's model index.

    Note: The corresponding handler is onSelectedTrackModelIndexChanged.


    Method Documentation

    bool isItemSelected(int itemIndex)

    Returns true if the subtitle item at itemIndex is currently selected.


    void selectItem(int itemIndex)

    Selects only the subtitle item at itemIndex, clearing any other selection.


    void selectRange(int itemIndex)

    Extends the selection from the last single-selection anchor to itemIndex.


    int selectedTrack()

    Returns the zero-based index of the currently selected track, or -1 if none.