Hi,

I created a Dialog using Qt 3.3.7, now I want to add buttons and labels.

When I tried to add like this..
Qt Code:
  1. QDialog *dlg = new QDialog(0,"title");
  2. dlg->setCaption( QDialog::tr( "Caption" ) );
  3. QLabel* lbl = new QLabel("Test Label",dlg);
  4. QPushButton* btn = new QPushButton("&press",dlg);
  5. QPushButton* btn1 = new QPushButton("e&xit",dlg);
To copy to clipboard, switch view to plain text mode 

It overwrites the properties.

What is the correct way to do this?

Thanks,
*npc*