where is your sample code inside your application? Maybe you can call update() before executing. But normally a code like that works for me:
Qt Code:
  1. void Foo::showDlg()
  2. {
  3. if(!m_dlg)
  4. m_dlg = new SubclassedDlg(this);
  5. m_dlg->setAllValuesToTheirDefault();
  6. m_dlg->exec();
  7. }
To copy to clipboard, switch view to plain text mode 
without "flashing".