Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, February 2007
Slider with in/out marks - subclassing or writing one's own?


Message 1 in thread

Hi...


Y'all probably know  the generic QSlider and the range control of  
media players like Quicktime. Those don't omly have the slider  
designating the frame which gets displayed, but  in/out marks  
"selecting" a part of the movie.

That's pretty much what I need.

I have two ideas on how to accomplish this:

a) Write my own custom widget which has draggable start/stop marks,  
displays the current position and so on.

This would be probably easy to do, but it would like a foreign  
widget. I'd rather have it looke like  Windows on Windows, like  Mac  
on the mac and so on.


b)  Subclassing QSlider, extending it with  start/stop marks and an  
area indicator, i.e. displaying the bar between the start/stop marks  
with two marks


c) Using three QSliders , one of the min, one for the max, and one  
for the current position.


Oh, and then there's of course


d) Perhaps someone did have the same problem and solved it.


I'd guess that there are at least a few Linux application around  
which make use of such a technique, but I can't seem to hit on the  
right keywords to look for them.


By the way, *is* there a name for such a widget?


Thankful for any hints

	Peter





--
 [ signature omitted ] 

Message 2 in thread

We're looking into something similar with a QSlider used with QuickTime via QAxWidget. Some of our movies are quite long, so we need a way to focus on a smaller part. 

I haven't done it yet, but one option is to add three buttons: 
- Set Start, to the left of the slider 
- Set Finish, to the right of the slider
- Show All, to the right of Set Finish.

Set Start or Set Finish get the current position and change the QSlider range accordingly. Show All sets the QSlider to show the whole range for the movie. 

(This should work fairly well for us, because we're working with various footage descriptions that only refer to part of a whole movie -- and each description comes with a time in and time out, so the start and finish of the range can be set automatically when the description is opened.)

Sam Dutton


 





SAM DUTTON
SENIOR SITE DEVELOPER

200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F 
E SAM.DUTTON@xxxxxxxxx
WWW.ITN.CO.UK

-----Original Message-----

From: Peter Brülls [mailto:pb@xxxxxxxx] 
Sent: Monday 19 February 2007 14:40
To: QT Interest List
Subject: Slider with in/out marks - subclassing or writing one's own?

Hi...


Y'all probably know  the generic QSlider and the range control of media players like Quicktime. Those don't omly have the slider designating the frame which gets displayed, but  in/out marks "selecting" a part of the movie.

That's pretty much what I need.

I have two ideas on how to accomplish this:

a) Write my own custom widget which has draggable start/stop marks, displays the current position and so on.

This would be probably easy to do, but it would like a foreign widget. I'd rather have it looke like  Windows on Windows, like  Mac on the mac and so on.


b)  Subclassing QSlider, extending it with  start/stop marks and an area indicator, i.e. displaying the bar between the start/stop marks with two marks


c) Using three QSliders , one of the min, one for the max, and one for the current position.


Oh, and then there's of course


d) Perhaps someone did have the same problem and solved it.


I'd guess that there are at least a few Linux application around which make use of such a technique, but I can't seem to hit on the right keywords to look for them.


By the way, *is* there a name for such a widget?


Thankful for any hints

	Peter





--
 [ signature omitted ]