[Development] Serious problem with Modeless dialogs on Mac (Qt 4.8)
Calogero Mauceri
mauceri at actgate.com
Thu Dec 6 11:27:40 CET 2012
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 <mauceri at actgate.com
> <mailto:mauceri at actgate.com>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20121206/0a2a6f98/attachment.html>
More information about the Development
mailing list