You could add this action to QToolBar and add this toolbar to the dialogs layout

or take a look at:

http://doc.trolltech.com/4.4/widgets-styles.html