I'm trying put a QMainWindow as a child of a QDialog!

My application have a QMainWindow, but I need a print view, and just with QMainWindow I can create a QToolBar with Qt Designer.
I created a var of my new QMainWindow type and putted his method show(), but this new QMainWindow isn't showed!!

How can I put this new QMainWindow inside my application??