Re: [Interest] QProgressDialog when setValue(0) is called

2016-12-28 Thread igor.mironchik
.@qt-project.org Subject: [Interest] QProgressDialog when setValue(0) is called Hello All, I have a class that is inherited from QProgressDialog. It sometimes crashes and its inside QProgressDialog class code. I detected that when the setValue(0); is called in its constructor, crash happens. When I comme

[Interest] QProgressDialog when setValue(0) is called

2016-12-28 Thread Berkay Elbir
Hello All, I have a class that is inherited from QProgressDialog. It sometimes crashes and its inside QProgressDialog class code. I detected that when the setValue(0); is called in its constructor, crash happens. When I commented out this function, It does not crash. Even if setValue(0) is called

Re: [Interest] QProgressDialog

2014-01-02 Thread John Weeks
Constantin- Thank you for your quick reply. > Also the case when both minimum and maximum are both set to zero is mentioned > in QProgressBar's description and I'm not sure it's really necessary to > duplicate that information for QProgressDialog which is built on top of > QProgressBar > Oops.

Re: [Interest] QProgressDialog

2013-12-31 Thread Constantin Makshin
That behavior looks reasonable to me -- the dialog must tell the system to redraw it, but doing that with an unchanged dialog would be waste of time. And obviously one can't change value of an indeterminate progress bar/dialog as it doesn't have any value at all. :-) Also the case when both minimu

[Interest] QProgressDialog

2013-12-30 Thread John Weeks
The documentation for QProgressDialog doesn't say anything about it, but it appears that setting both minimum and maximum to zero results in an "indeterminate" progress dialog. The documentation *does* say that if you make it a modal dialog, then calling QProgressDialog::setValue() will call pr

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-20 Thread André Somers
David Faure schreef op 20-11-2013 12:30: > On Monday, November 18, 2013 08:09:41 AM André Somers wrote: >> It is *not* called by setValue. That is a Good Thing(TM). > I strongly encourage reading code or documentation before making such > answers... Oops... /me goes to hide quietly in a corner and

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-20 Thread David Faure
On Monday, November 18, 2013 08:09:41 AM André Somers wrote: > It is *not* called by setValue. That is a Good Thing(TM). I strongly encourage reading code or documentation before making such answers... \warning If the progress dialog is modal (see QProgressDialog::QProgressDialog()), s

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-18 Thread Mandeep Sandhu
> I strongly object to using a thread for something this simple. Threading > is to be avoided whenever possible, because it's so hard to debug. Use There's no black magic involved in threads. Though I agree it might be an overkill in some cases, not so sure about this case. > the chunks method in

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-18 Thread André Somers
Bo Thorsen schreef op 18-11-2013 9:27: > Den 18-11-2013 08:59, Mandeep Sandhu skrev: >>> You have two viable approaches here: >>> * break up the saving method into chunks. That is, do a small part of the >>> work of the saving, queue the next piece of work to be done, and return to >>> the eventloo

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-18 Thread Bo Thorsen
Den 18-11-2013 08:59, Mandeep Sandhu skrev: >> You have two viable approaches here: >> * break up the saving method into chunks. That is, do a small part of the >> work of the saving, queue the next piece of work to be done, and return to >> the eventloop. The eventloop will then trigger the next q

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-17 Thread Mandeep Sandhu
> You have two viable approaches here: > * break up the saving method into chunks. That is, do a small part of the > work of the saving, queue the next piece of work to be done, and return to > the eventloop. The eventloop will then trigger the next queued piece of the > work being done. This way,

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-17 Thread Thiago Macieira
On segunda-feira, 18 de novembro de 2013 08:15:48, Konrad Rosenbaum wrote: > it is always safe to call processEvents yourself. No, it's not. There are a lot of situations when doing that will cause you problems elsewhere. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-17 Thread Konrad Rosenbaum
Hi, it is always safe to call processEvents yourself. If the QProgressDialog has display issues it obviously does not get enough CPU to update itself, calling processEvents more often may(!!) help. When I want to see a QProgressDialog early I normally force the issue by calling show() immediat

Re: [Interest] QProgressDialog not showing & processEvents()

2013-11-17 Thread André Somers
Etienne Sandré-Chardonnal schreef op 15-11-2013 14:05: Dear all, I have a long file saving function (gigabytes - several minutes) and I am trying to use QProcessDialog. I am using it the Modal way as explained in the documentation. However, the dialog appears after about 50 seconds, despite h

[Interest] QProgressDialog not showing & processEvents()

2013-11-15 Thread Etienne Sandré-Chardonnal
Dear all, I have a long file saving function (gigabytes - several minutes) and I am trying to use QProcessDialog. I am using it the Modal way as explained in the documentation. However, the dialog appears after about 50 seconds, despite having set the minimumDuration to 0, and called setValue() se