Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Creating a interactive timeline control/editor

    General and Desktop
    3
    3
    1573
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      johnsmith12 last edited by

      0_1504799146917_c312a6c9-f515-4d38-aa8d-b62195f72b79-image.png

      I wanted to create a timeline-based slider something like youtube has now.

      1. Move horizontally just like QSlider
      2. Hover would display time or some other status when hover over
      3. Markers on the slider timeline that indicate something (youtube had those yellow markers on the slider that indicated ads)

      This might be not capable - even with customizing - for QT?

      So I was conceding to something like this where the slider updates timeline-based control or something else:
      0_1504799667574_test.png

      I was wondering what's the best approach to subclass an existing control to create a graphical timeline (with that hover popup) Or should I be looking at something like QGraphicsView? The interactive timeline (often seen in video editors) is the goal for me.

      Any help would be appreciated!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        If you are looking for video editor like controls you might want to take a look at Kdenlive's sources.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • T
          Tikani last edited by

          I think you can subclass QAbstractSlider and reimplement those virtual protected and pure virutal methods you need to get what you want, especially all that relates to paintEvent() and starts with paint in general.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post