Test7_5A::Test7_5A(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
m_searchwin = new SearchWindows(this);
m_searchwin->setWindowFlags(Qt::Window); //这句代码最为关键,定义一个新的非模式窗口;
connect(ui.m_BtnStart, SIGNAL(clicked()), this, SLOT(OnBtnStart()));
connect(m_searchwin->ui.m_BtnSearch, SIGNAL(clicked()), this, SLOT(OnBtnSearch())); //使另外一个窗口的对象,在主窗口中可以调用;
}
ui.m_TextEdit->appendPlainText(text); //这个是在TEXT中添加新字符串时,旧的不丢失,并换行输入;