Hi, is there any way to implement the drag and drop function to a slicelet (qt widget without the main window) as it is with the the main window (hopefully other than rewriting it from scratch ) thanks
Last time I checked you could only implement the drop behavior in C++ by overriding the
dropEvent method, but maybe somebody can find a way to do it in Python.
We do not recommend to implement slicelets without main window for many reasons. Slicer now has built-in scripts to strip down the default main window from Python (see here). For more control, you can create a custom application in C++ (based on a default main window that you can customize any way you need).