[Interest] semi-modal dialog
Scott Bloom
scott at towel42.com
Fri Jul 30 01:55:37 CEST 2021
This is the current path we are going down.
The problem is also the titlebar differences between windows and linux
~~Scott
-------- Original message --------
From: John Weeks <john at wavemetrics.com>
Date: 7/29/21 4:34 PM (GMT-08:00)
To: Giuseppe D'Angelo via Interest <interest at qt-project.org>
Cc: Scott Bloom <scott at towel42.com>
Subject: Re: [Interest] semi-modal dialog
We do something similar- we make it possible to put up a control panel (a special type of window in our application) that allows the user to interact in certain ways with one other window and no others. We do it with some very hairy code that probably would make Thiago throw up.
We fake the modal nature of this partially modal window by installing an event filter on the application. Then we just block all the events that shouldn't get through. Getting the choice of events right can be very tricky! The ugliest bit is responding to window activation to force the active window back to the one we want to be active.
Hopefully, someone has a better solution to this problem!
> On Jul 29, 2021, at 3:21 PM, Scott Bloom <scott at towel42.com> wrote:
>
> Here is my problem.
>
> I have a progress dialog, that I need to be able to use as a modal dialog with respect to the main window (a QMainWindow class, which is also its parent widget).
>
> But, I need to still be able to minimize the main application and even move it.
>
> Any ideas on the best way to implement something like this?
>
> Scott
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-John Weeks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210729/a7017ac4/attachment.html>
More information about the Interest
mailing list