|  | Home · Tutorial · Classes · Functions · Language · QSA Workbench · Qt Documentation · www.trolltech.com |

# QSStackFrame Class Reference

The QSStackFrame class provides information about a function call in the stack trace. More...

        #include <QSStackFrame>

- List of all members, including inherited members

### Public Functions

- QObject * context () const
- QString function () const
- int line () const
- QString scriptName () const

## Detailed Description

The QSStackFrame class provides information about a function call in the stack trace.

A QSStackFrame object only makes sense when grouped together in a QSStackTrace to provide a trace of the execution up to where an error occurred.

The QSStackFrame contains four values: file name, line number, function name, and context.

## Member Function Documentation

### QObject * QSStackFrame::context () const

Returns the context of the function if it was evaluated in the context of a QObject; otherwise returns 0.

### QString QSStackFrame::function () const

Returns the name of the function that this stack frame describes.

### int QSStackFrame::line () const

Returns the line number within the script.

### QString QSStackFrame::scriptName () const

Returns the name of the script in which the function is located if the script name was specified when the function was evaluated; otherwise returns QString::null.