# InfoDialog

```
// En Maui.ApplicationWindow

Maui.InfoDialog
{
    id: infoDialog

    title: i18n("Get Youtube API Key")
    message: i18n("Provide your own API key. Follow the steps indicated and copy the key generated on the Settings menu")

    template.iconSource: "settings-configure"

    onAccepted: close()
    onRejected: close()

    Button {
        anchors.horizontalCenter: parent.horizontalCenter
        text: "Get API key"
        flat: true
        onClicked: {
            Qt.openUrlExternally("https://github.com/headsetapp/headset-electron/wiki/Get-Youtube-API-Key")
        }
    }
}

// En headBar.leftContent: Maui.ToolButtonMenu

MenuItem
{
    text: "API Key"
    icon.name: "database-change-key"
    onTriggered: infoDialog.open()
}
```

<figure><img src="https://3899745996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FED1v8xhNFPWKlgOCuryr%2Fuploads%2Fhkb1oxwpTuupPwEQpO1u%2FControls-InfoDialog.jpg?alt=media&#x26;token=5165d071-0c4d-49ad-b6c2-9b12d8466e37" alt=""><figcaption></figcaption></figure>

## Propiedades

{% embed url="<https://api.kde.org/mauikit/mauikit/html/classInfoDialog.html>" %}
