QFrame frame(this, "my_frame", Qt::WType_Dialog|Qt::WShowModal);
mf = new MYFrame;...mf->setModal(true);...mf->setModal(false);