Making a VST Effect Stack using Model/View
-
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):
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!
-
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.
-
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.