- How would we know whether an OpenCV function supports in-place operations?
As we mentioned in the chapter, we can refer to the official document pertaining to the function. If the document stipulates that it supports in-place operations, then it does, otherwise, it doesn't.
- How can a hotkey be added to each action we added as a plugin?
We can add a new method to the plugin interface class that returns a QList<QKeySequence> instance and implement it in the concrete plugin class. When we load the plugin, we call that method to get the shortcut key sequence and set it as the hotkey of the action for that plugin.
- How can a new action be added to discard all the changes in the current image in our application?
First of all, add a class field of the QPixmap type to the MainWindow class. Before editing the current image, we save a...