Im working with a thirdparty lib, that I have zero control over š
Essentially, on a ābutton clickā a long running blocking function call is
executed. I can safely call the function into a background thread, but I donāt
want the gui flow to continue.
My idea is the following, a class that takes
On 20/10/2020 22:16, Scott Bloom wrote:
Essentially, on a ābutton clickā a long running blocking function call
is executed. I can safely call the function into a background thread,
but I donāt want the gui flow to continue.
My idea is the following, a class that takes a lambda.
When a block
On Tuesday, 20 October 2020 14:26:10 PDT Giuseppe D'Angelo via Interest wrote:
> Can't you just create a QDialog and exec() it?
Or any other modal window in front. You probably want to display either a
progress bar or a distraction, to let your users know that the application
isn't frozen.
--
::exec.
Works like charm. Thanks for the advice.
Scott
-Original Message-
From: Interest On Behalf Of Thiago Macieira
Sent: Tuesday, October 20, 2020 3:44 PM
To: interest@qt-project.org
Subject: Re: [Interest] question for a blocking background thread call
On Tuesday, 20 October 2020 14:26:10
> -Original Message-
> From: Interest On Behalf Of Thiago
> Macieira
> Sent: Tuesday, October 20, 2020 3:44 PM
> To: interest@qt-project.org
> Subject: Re: [Interest] question for a blocking background thread call
>
> On Tuesday, 20 October 2020 14:26:10 PDT Giuseppe
Behalf Of Thiago Macieira
>> Sent: Tuesday, October 20, 2020 3:44 PM
>> To: interest@qt-project.org
>> Subject: Re: [Interest] question for a blocking background thread call
>>
>> On Tuesday, 20 October 2020 14:26:10 PDT Giuseppe D'Angelo via Interest
>> wrot
long
> > running operations in our application, and it has also worked out fine.
> >
> > Elvis
> >
> >>
> >> Scott
> >> -Original Message-
> >> From: Interest On Behalf Of Thiago
> >> Macieira
> >> Sent
> >> The progress dialog, is run with windowModality set to Qt::WindowModal,
> > >>
> > >> I overload exec, and launch the function then call QProgressDialog::exec.
> > >>
> > >> Works like charm. Thanks for the advice.
> > >
>