PDA

View Full Version : How to make a timeline ?



azsde
27th May 2015, 12:21
Hello everyone,

I'm currently developing an application, and I need to implement a timeline that would work the same way as this one, from adobe premiere pro :

http://image.noelshack.com/fichiers/2015/22/1432721897-capture.png

I need to be able to drag and drop widget that would stay on the spot where I drop them, currently I have used a HBoxLayout, but everything is aligned on the left (which is a normal behaviour).

After some thinking, I see two ways of doing this :


Use the HBoxLayout with spacers (not pratical but may work)
Create my own QLayout (can be difficult)


Is there another way of doing this ? If not, which way do you recommend ?

Thank you in advance for your answer.

Regards,

Azsde.