When calling QPrintDialog from qtscript empty dialog shows up, I used the code from QT example on how to call QPrintDialog, is this bug or is there any other way to do it?

I'm using Qt 4.4.3

Please help!