test * test_1 = new test; connect(test_1,SIGNAL(signal_error(QString)),this,SLOT(msg_error(QString)));connect (test_1,SIGNAL(signal_sn(QString)),this,SLOT(msg(QString)));
emit signal_sn(serial_ms);
public slots: void msg(QString); void msg_error(QString);
public slots:void msg(QString); void msg_error(QString);
signals:void signal_sn(QString);void signal_error(QString);
connect (test_1,SIGNAL(signal_sn(QString)),this,SLOT(msg(QString))); connect (test_1,SIGNAL(signal_error(QString)),this,SLOT(msg_error(QString)));