|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications |

[Prev: if] [Home] [Next: label]

### finally

    try {
        Statements;
    }
    finally {
        finalStatements;
    }

A `finally` block is a block of code that is executed after the governing try block. If no exceptions occur within the try block, control will pass to the `finally` block after the last statement in the try block has been executed. If an exception occurs within the try block, control is passed immediately to the `finally` block.

See also try.

[Prev: if] [Home] [Next: label]