Re: [Interest] Modeless dialog issue on Mac

2023-11-15 Thread Hamish Moffatt via Interest
On 15/11/23 21:01, Calogero Mauceri wrote: The problem of using Qt::WindowStaysOnTopHint is that the dialog stays on top of any desktop application while it has to be on top of the application level only. Here is what I mean We grappled with this too. It actually worked well in earlier versio

Re: [Interest] Modeless dialog issue on Mac

2023-11-15 Thread Oliver Knoll
> Am 15.11.2023 um 14:02 schrieb Calogero Mauceri : > > I tried the example application you suggested, it seems none of the flags > combination results in the wanted result: Oh… bummer! ChatGPT sounded so convincing! But like a (then) famous rock band was already postulating in the early 90ie

Re: [Interest] Modeless dialog issue on Mac

2023-11-15 Thread Tor Arne Vestbø via Interest
As a workaround you can try static_cast(window.winId()).window.windowLevel = NSNormalWindowLevel + 1 In a .mm file or build your cpp file with -x objective-c++ On 15 Nov 2023, at 14:02, Calogero Mauceri wrote: You don't often get email from mauc...@actgate.com. Learn why this is important

Re: [Interest] Modeless dialog issue on Mac

2023-11-15 Thread Calogero Mauceri
Thanks Oliver for you hint, I tried the example application you suggested, it seems none of the flags combination results in the wanted result: either the window is behind the main application or it is on top of all desktop applications On Wed, Nov 15, 2023 at 1:25 PM Oliver Knoll wrote: > > >

Re: [Interest] Modeless dialog issue on Mac

2023-11-15 Thread Oliver Knoll
> Am 15.11.2023 um 13:14 schrieb Oliver Knoll : > > But I understand your use case better now, and yes, it is different from > mine. However I don‘t know any „top of application (only)“ flag myself (not > saying that Qt doesn’t provide such a flag - I just don’t know). And what do we do if we

Re: [Interest] Modeless dialog issue on Mac

2023-11-15 Thread Oliver Knoll
> Am 15.11.2023 um 11:01 schrieb Calogero Mauceri : > > The problem of using Qt::WindowStaysOnTopHint is that the dialog stays on top > of any desktop application Yes, that‘s exactly the intention of this flag and that is exactly the use case of my application („Sky Dolly“ (open source) is a f

Re: [Interest] Modeless dialog issue on Mac

2023-11-14 Thread Tor Arne Vestbø via Interest
A non-modal Dialog (NSPanel) isn’t inherently at a higher window level than a normal window on macOS: [developer-og.jpg] NSWindowLevel | Apple Developer Documentation

Re: [Interest] Modeless dialog issue on Mac

2023-11-14 Thread Oliver Knoll
> Am 14.11.2023 um 16:29 schrieb Calogero Mauceri : > >  > Here "this" is a pointer to the parent dialog. I've tried with QMainWindow > too as a parent, but unfortunately the problem is still there, not sure if > that's another bug. > The only way I found for having the modeless dialog on top

Re: [Interest] Modeless dialog issue on Mac

2023-11-14 Thread Calogero Mauceri
Here "this" is a pointer to the parent dialog. I've tried with QMainWindow too as a parent, but unfortunately the problem is still there, not sure if that's another bug. The only way I found for having the modeless dialog on top of its parent is to create it with Qt::Tool flag. That problem is only

Re: [Interest] Modeless dialog issue on Mac

2023-11-14 Thread Frank Osterfeld via Interest
> On 14. Nov 2023, at 11:49, Calogero Mauceri wrote: > > Hi all, > > I have the following problem with dialogs on the Mac. > > I have a main window/dialog and I am opening a modeless dialog, I need to > have both the main window/dialog and the modeless dialog visible at the same > time. > I

Re: [Interest] Modeless dialog issue on Mac

2023-11-14 Thread Calogero Mauceri
Thanks, https://bugreports.qt.io/browse/QTBUG-119129 On Tue, Nov 14, 2023 at 1:09 PM Tor Arne Vestbø wrote: > The broken button rendering is a bug, please file one in JIRA, thanks :) > > On 14 Nov 2023, at 11:49, Calogero Mauceri wrote: > > Hi all, > > I have the following problem with dialogs

Re: [Interest] Modeless dialog issue on Mac

2023-11-14 Thread Tor Arne Vestbø via Interest
The broken button rendering is a bug, please file one in JIRA, thanks :) On 14 Nov 2023, at 11:49, Calogero Mauceri wrote: Hi all, I have the following problem with dialogs on the Mac. I have a main window/dialog and I am opening a modeless dialog, I need to have both the main window/dialog a