Qt Forum

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

    Unsolved Making a VST Effect Stack using Model/View

    General and Desktop
    model-view vst listwidget
    2
    5
    344
    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.
    • R
      rtavakko last edited by rtavakko

      Hi everyone,

      I'm reading up on the QT mode/view classes and I wanted to get input on a concept before I dive in.

      Basically I'm looking to make something similar to the VST audio effect stacks you see in the mixer channels of software like Logic Pro or FL Studio like in this screenshot (the effect stack is the collection of blue boxes towards the top of the image):

      https://dt7v1i9vyp3mf.cloudfront.net/styles/news_large/s3/imagelibrary/L/Logic01-0318-RBei0Gn2PhwBYXG.qamlFN71SAAR6Opz.jpg

      The stack as a whole would be the list widget which contains item models. When you click each item, a widget representing the controls of that effect would pop up which would let you interact with an instance of the VST effect plugin or class. So you would have:

      • A list widget containing items representing an effect
      • A widget or window tied to each item for controls
      • Instance of the actual effect backend

      I'm not sure where each item would fit in the QT model / view / data concept. Would the view correspond to the individual items in the list with the model being the backend class instance? Would a delegate be needed also?

      Cheers!

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

        Hi,

        The view is just something that shows the content of your model. Your model would be a wrapper on top of the list of your plugins. As for the widgets, each instance of your plugin should provide it.

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

        R 1 Reply Last reply Reply Quote 2
        • R
          rtavakko @SGaist last edited by

          @SGaist Thanks! So the view is basically just an icon or line of text representing your items?

          Do you recommend any specific examples or tutorials?

          Thanks

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

            The view can show whatever you want. The usual is icon and/or text but you can create your own custom painting if needed.

            You can find several examples in Qt's documentation.

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

            R 1 Reply Last reply Reply Quote 1
            • R
              rtavakko @SGaist last edited by

              @SGaist Thanks, I will dig into it more

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