Hi,

This is regarding a problem I am facing in using QDialog on Mac



I am showing a MODELESS dialog from Main Window class. For this dialog, I am passing parent as MainWindow class. Up to this there is no problem.



The Problem here is that, when I move from dialog to parent window by clicking mouse on parent window, the dialog is going behind the parent window.

On Windows, it floats on the parent window. I require similar behavior on Mac, but the dialog goes behind the application main window.



To avoid this I followed two approaches which are not completely working



1) By setting windowflags(Qt:: WindowStaysOnTopHint) for dialog. This creates another problem for any alerts which are popped up in the application are going behind this dialog.

2) By setting windowflags(Qt::Tool) for dialog. The result is a dialog without a minimize button. But I require minimize button for the dialog.



My queries are



a) Can’t we have minimize button for Tool type dialogs? If yes, how can I set minimize button for Tool type dialogs.

b) If No, how can I achieve the above mentioned requirement on Mac?





PS: Dialog should be floated on parent window when I move from child dialog to parent window by clicking mouse on parent window on Mac.





Kindly help me out with the problem I am facing.


Thanks,

Satya.