For those who are too lazy to look into attachment, here is code present in the constructor of base object:
setObjectName("trial");
editor = 0;
qsProject = new QSProject(this);
m_pButton2->move(20, 0);
m_pButton1->setObjectName("button");
m_pButton2->setObjectName("buttons");
widget = new MyWidget(this, qsProject);
widget->setObjectName("container_");
widget->resize(50, 50);
widget->move(50, 50);
m_pLabel1 = new MyLabel(this);
m_pLabel1->setText("Hello World!");
m_pLabel1->move(100, 100);
m_pLabel2 = new MyLabel(this);
m_pLabel2->setText("Are You Listning?");
m_pLabel2->move(100, 105);
resize( 200, 200);
// qsProject->addObject(m_pButton1);
// qsProject->addObject(m_pButton2);
// qsProject->addObject(widget);
qsProject->addObject(this);
editor = new ScriptEditor( qsProject );
editor->show();
setObjectName("trial");
editor = 0;
qsProject = new QSProject(this);
m_pButton1 = new QPushButton("First", this);
m_pButton2 = new QPushButton("Second", this);
m_pButton2->move(20, 0);
m_pButton1->setObjectName("button");
m_pButton2->setObjectName("buttons");
widget = new MyWidget(this, qsProject);
widget->setObjectName("container_");
widget->resize(50, 50);
widget->move(50, 50);
m_pLabel1 = new MyLabel(this);
m_pLabel1->setText("Hello World!");
m_pLabel1->move(100, 100);
m_pLabel2 = new MyLabel(this);
m_pLabel2->setText("Are You Listning?");
m_pLabel2->move(100, 105);
resize( 200, 200);
// qsProject->addObject(m_pButton1);
// qsProject->addObject(m_pButton2);
// qsProject->addObject(widget);
qsProject->addObject(this);
editor = new ScriptEditor( qsProject );
editor->show();
To copy to clipboard, switch view to plain text mode
Bookmarks