Hi I have a transparent dialog box (windowOpacity = 0.5) and I have another dialog box who is (and has to be) child of this dialog.

Is this possible to have full opacity just for that control? I know if I don't make it as child of the previous dialog, it does have full opacity but the reason why i want that to be child is because the parent is in full screen mode and I don't want any bars (for example unity bar in ubuntu) to display when modal dialog is shown as "orphan". I have tried following:
Qt Code:
  1. //CODE IN PARENT CONSTRUCTOR
  2. dlgChild = new Dialog(this);
  3. dlgChild->setModal(true);
  4. dlgChild->setWindowFlags(Qt::WindowStaysOnTopHint);
  5. dlgChild->setWindowFlags(Qt::FramelessWindowHint);
  6. for (int i = 0; i < dlgChild->children().size(); i++) {
  7. QObject* child = dlgChild->children().at(i);
  8. static_cast<QWidget*>(child)->setWindowOpacity(1);
  9. }
  10. dlgChild->setWindowOpacity(1);
  11. dlgChild->show();
To copy to clipboard, switch view to plain text mode