I am trying to make a simple example of QDialog. I tried this: http://programmingexamples.net/index...itle=Qt/Dialog but the dialog that is opened does not have the buttons or label that I saw in the Designer. I think it might be a problem with the Dialog() constructor - would someone mind taking a quick look?

Also, I've seen examples that use ->exec() instead of ->show(), but when I try that it says there is no such function.

Thanks,

David