Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Implementation advice needed: per-frame sound effect indicators
Qt 6.11 is out! See what's new in the release blog

Implementation advice needed: per-frame sound effect indicators

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 912 Views 2 Watching
  • 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.
  • Chris HennesC Offline
    Chris HennesC Offline
    Chris Hennes
    wrote on last edited by Chris Hennes
    #1

    The software I'm working on is a simple stop-motion animation package for kids. It's got the ability to add sound effects, up to one per frame. In a normal use-case a student might put in 20-30 sound effects in a 1000 frame movie. Right now the interface has a slider along the bottom edge for moving between already-taken frames. I'd like to add indicators nearby showing where the sound effects are (that is, the frame they start playing at). In an ideal world those indicators would have a tooltip stating their frame number and the sound chosen, and could be clicked on to bring up the SFX editing dialog.

    I have three thoughts about how to implement this.

    1. Subclass QSlider and manually draw in "tick marks" at the frames that have SFX. Overload the mouse functions to handle the interactivity. Probably use a double-click to edit the SFX. Try to minimize interference with the normal function of the slider.
    2. Create an entirely separate single widget based on QGraphicsView and draw the ticks where I need them. Display it above (or below) the slider so it doesn't interfere. Manually code in the mouse handling.
    3. Create a widget based on a horizontal layout. Each frame gets a cell. The cells representing SFX get a button added to them. The buttons do their thing. I've never tried making a layout with that many cells, though. It seems kind of sketchy.

    Any thoughts on these ideas, or any other suggestions?

    Chris Hennes, Pioneer Library System

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If you need to show that many pictures, why not a horizontal QListView with a custom delegate ?

      You could also paint there information about the SFX as an "overlay" on the corresponding frames.

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved