bugGNU Octave - Bugs: bug #54935, waitbar demos are too fast with qt...

 
 

bug #54935: waitbar demos are too fast with qt toolkit

Submitter:  Rik <rik5>
Submitted:  Thu 01 Nov 2018 06:54:53 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 02 Nov 2018 11:08:10 PM UTC, comment #1: 
Rik <rik5>
Group administrator
Thu 01 Nov 2018 06:54:53 PM UTC, original submission:  

The waitbar demos were originally created with the FLTK toolkit in mind.  When executed with FLTK they operate at a reasonable speed and one can see the operations in progress.  However, when the toolkit is qt everything runs very quickly and the demo is over before the user can comprehend anything.

What we should probably do is place pause() statements within the for loops to slow things down to a reasonable speed.  However, should we check which toolkit we are using first?  Or just slow everything down?

Below are some timings


octave:34> tic; demo ('waitbar', 1); toc
waitbar example 1:
 h = waitbar (0, '0.00%');
 for i = 0:0.01:1
   waitbar (i, h, sprintf ('%.2f%%', 100*i));
 endfor
 close (h);

Elapsed time is 0.270298 seconds.
octave:35> graphics_toolkit fltk
octave:36> tic; demo ('waitbar', 1); toc
waitbar example 1:
 h = waitbar (0, '0.00%');
 for i = 0:0.01:1
   waitbar (i, h, sprintf ('%.2f%%', 100*i));
 endfor
 close (h);

Elapsed time is 1.69618 seconds.



Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-02 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code