[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54935] waitbar demos are too fast with qt too
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #54935] waitbar demos are too fast with qt toolkit |
Date: |
Thu, 1 Nov 2018 14:54:54 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 |
URL:
<https://savannah.gnu.org/bugs/?54935>
Summary: waitbar demos are too fast with qt toolkit
Project: GNU Octave
Submitted by: rik5
Submitted on: Thu 01 Nov 2018 11:54:53 AM PDT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54935>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54935] waitbar demos are too fast with qt toolkit,
Rik <=