Hi,

WindowA is derived from QMainWindow.

DlgA is derived from QDialog. Removed frame for dilaog box by using setWindowFlags(Qt::FramelessWindowHint);.

On button click event, WindowA displays DlgA.

Now, I want to make DlgA as center window for WindowA. I cannot send QMainWindow object as a parent to DlgA constructor. It accepts Dialog object only as a parent.

What is better way to handle this?

Thanks.