[Interest] semi-modal dialog
Alexey Rusakov
ktirf at users.sf.net
Fri Jul 30 19:11:01 CEST 2021
I see quite a few applications adopting a popup instead that collapses into
a toolbar icon showing a progress summary as a micro-pie-chart. And if you
need to disable access to some components in the main window, you can
disable/enable respective widgets depending on the progress. If the
operation really blocks everything, maybe put the progress controls into an
overlay widget parented by the main window, disabling actual main window
controls. If you still need the ability to move the progress dialog
independently of the main window, I'd suggest using a torn-off toolbar as a
container of progress controls.
Kind regards,
Alexey
On Fri, 30 Jul 2021 at 01:56, Scott Bloom <scott at towel42.com> wrote:
> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
--
Alexey Rusakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210730/bc631763/attachment.html>
More information about the Interest
mailing list