I have a layout in which there are three 3d views.I want to put a button(load DICOM) in the topbar(barLayout) of the first threeDView.But when I am running my code many time the button is coming in second or third view node too.Why is this happening?
theeDWidget(0) may refer to any of the views. Check the associated view node to determine which view are you actually modifying.
The “Class … has … instance still around” means you have a memory leak in your code: you created a VTK object, added references to it, and have not removed all references before exiting the application. Check out this page for more details. This is not related to which view controller widgets the extra button shows up at.