• Shotcut QML Scripting API
  • Shotcut.Controls
  • FontDialog
  • FontDialog QML Type

    A native font-chooser dialog. More...

    Import Statement: import Shotcut.Controls

    Properties

    Signals

    Methods

    Detailed Description

    import Shotcut.Controls as Shotcut
    
    Shotcut.FontDialog {
        id: fontDialog
        onAccepted: document.setFontFamily(fontDialog.selectedFont.family)
    }

    Property Documentation

    selectedFont : font

    The font currently selected in the dialog. Set before open() to pre-populate; read in accepted to retrieve the choice.


    Signal Documentation

    accepted()

    Emitted when the user confirms the font selection.

    Note: The corresponding handler is onAccepted.


    rejected()

    Emitted when the user dismisses the dialog without selecting a font.

    Note: The corresponding handler is onRejected.


    Method Documentation

    open()

    Opens the native font dialog modally.