Multimedia Guide and Reference

Recommended connections

You can make any connection between objects. The following explains certain key connections that can be made.

Error handling

The easiest way for you to add error handling to your application is to tear off the lastError attribute and connect the errorOccured event of lastError to the display action of lastError. Now, whenever an error occurs, a message box displays.

There are three different types of errors: critical, warning and information. You can control which errors are displayed in the message box by setting errorThreshold. There are three values that you can set:

1
Displays only critical errors.
2
Displays both critical and warning errors.
3
Displays critical, warning and information errors.

The default error threshold is 2. To change this, you can connect the aboutToOpenWidget event of your window to the errorThreshold attribute of lastError. Set the argument to be either 1, 2, or 3.

Debugging

To help debugging, instead of bringing up a message box every time there is an error, place the attributes in your window. Then, every time there is an error, these fields are updated and you do not have a message box with which to interact.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]