PySide usage snippets

Introduction
These are snippets of code that are useful when creating interfaces with PySide.

For more information on creating full interfaces see Interface creation with UI files.

UTF8
By using the characters with accents, where you get the error:

Several solutions are possible.

or with the procedure

ASCII
or with the procedure

or

or

or