For those who are too lazy to look into attachment, here is code present in the constructor of base object:
Qt Code:
  1. setObjectName("trial");
  2. editor = 0;
  3.  
  4. qsProject = new QSProject(this);
  5.  
  6. m_pButton1 = new QPushButton("First", this);
  7. m_pButton2 = new QPushButton("Second", this);
  8. m_pButton2->move(20, 0);
  9. m_pButton1->setObjectName("button");
  10. m_pButton2->setObjectName("buttons");
  11.  
  12.  
  13. widget = new MyWidget(this, qsProject);
  14. widget->setObjectName("container_");
  15. widget->resize(50, 50);
  16. widget->move(50, 50);
  17.  
  18. m_pLabel1 = new MyLabel(this);
  19. m_pLabel1->setText("Hello World!");
  20. m_pLabel1->move(100, 100);
  21.  
  22. m_pLabel2 = new MyLabel(this);
  23. m_pLabel2->setText("Are You Listning?");
  24. m_pLabel2->move(100, 105);
  25.  
  26. resize( 200, 200);
  27.  
  28. // qsProject->addObject(m_pButton1);
  29. // qsProject->addObject(m_pButton2);
  30. // qsProject->addObject(widget);
  31. qsProject->addObject(this);
  32.  
  33. editor = new ScriptEditor( qsProject );
  34. editor->show();
To copy to clipboard, switch view to plain text mode