You don't say what your problem is, so I am guessing: move the signal/slot connect before the call to exec()

Qt Code:
  1. Dialog *d = new Dialog;
  2. connect(d, SIGNAL(update(QString)),this,SLOT(Set_style_Sheet(QString)));
  3. d->exec();
To copy to clipboard, switch view to plain text mode 

Btw, creating a dialog with new and not deleting it results in memory loss.

Cheers,
_