Dear yogeshm02

Many thanks to You! It's unbelievable, getting a working solution to my problem in such a short time

Following Your advice, I added three lines of code:

Qt Code:
  1. void MainWindow::replaceDockEquipment(ParameterTree* equipment)
  2. {
  3. ParameterTree* old = qobject_cast<ParameterTree*>(dockWdgtEqmt->widget());
  4. if (equipment != old) {
  5. if (old)
  6. old->setParent(0); // in memorial yogeshm02 (Qt Center Forum)
  7.  
  8. equipment->setParent(dockWdgtEqmt);
  9. dockWdgtEqmt->setWidget(equipment);
  10. dockWdgtEqmt->update();
  11. }
  12. }
To copy to clipboard, switch view to plain text mode