Your custom dialog code should reimplement the keyPressEvent and
animate the cancel button so that the dialog behaves like regular
dialogs.
</p>
<p>
<b>Layout:</b>\n
</p>
<p>
The dialog consists of a help area on top (becomes visible if you define
a help path and use enableLinkedHelp()), the main area which is
the built-in dialog face or your own widget in the middle and by default
a button box at the bottom. The button box can also be placed at the
right edge (to the right of the main widget). Use
setButto