mdiarea=QMdiArea()d=QDialog()mdiarea.addSubWindow(d)d.parent().setWindowIcon(QIcon("...."))
QMdiSubWndow * subWnd = mdiarea.addSubWindow(dlg);subWnd->setWindowIcon(QIcon("...."));
mdiarea.addSubWindow(dlg);dlg->parent()->setWindowIcon(QIcon("...."));
void MainWindow::ShowBillForm(){ billForm = new BillForm(this); // наследник от QDialog billForm->setAttribute(Qt::WA_DeleteOnClose); QMdiSubWindow * subBill = mdiArea->addSubWindow(billForm); subBill->setWindowIcon(QIcon("images/calendar.png")); billForm->show();}
billForm->parent()->setWindowIcon(QIcon("...."));
QWidget * QWidget::parentWidget ()