Il 05/12/2012 19.44, Robert Knight ha scritto:
> All modeless dialogs disappear behind the main application whenever
> the user clicks outside them (consider a Find/Replace dialog which
> always needs to be on top of the main application window).

Set the window type to Qt::Tool in the QDialog or QWidget constructor on Mac, which corresponds to NSFloatingWindowLevel in Cocoa.

Taking your example of the Find/Replace dialog, if you look at this dialog in Pages, you'll see that it is a tool window. If you open a modeless dialog which is not a tool window, like the preferences dialog, it disappears behind the main window when the main window is given focus.

Robert thanks for your reply,

it seems you are right, also for other Mac applications the preferences dialog disappears behind when the main window is given focus. Now that behavior is different than the one on Windows, Linux and Mac with Qt compiled against the Carbon framework.
Shouldn't Qt library adopt an uniform behavior between multiple platoforms?

Thanks,
    Calogero


Regards,
Rob.


On 5 December 2012 15:40, Calogero Mauceri <[email protected] <mailto:[email protected]>> wrote:

    All modeless dialogs disappear behind the main application
    whenever the
    user clicks outside them (consider a Find/Replace dialog which always
    needs to be on top of the main application window).



--
Calogero Mauceri
Software Engineer

Applied Coherent Technology Corporation (ACT)
www.actgate.com

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to