I don't use qpixmap in the application.

this is the method, where signal is emitted:
Qt Code:
  1. void IntWidget::more_than_one_result_slot(QList<QList<SetField *> *> *result_list)
  2. {
  3. qDebug() << "IntWidget::more_than_one_result_slot(QList<QList<SetField *> *> *result_list)";
  4. qDebug() << this->thread();
  5. DecideDlg dlg(this,result_list);
  6. dlg.exec();
  7. QList<MatchingSetField*>* chosen_list = dlg.getChosenList();
  8. //emit the signal. the slot is in Thread
  9. emit decided(chosen_list);
  10. }
To copy to clipboard, switch view to plain text mode 
this is the slot
Qt Code:
  1. void BaseExport::decided_slot(QList<SetField *> *decide_list)
  2. {
  3. qDebug() << "BaseExport::decided_slot(QList<SetField *> *decide_list)";
  4. for(int i = 0; i < decide_list->size(); i++){
  5. SetField* decided_setfield = decide_list->value(i);
  6. Set* current_set = sets->value(decided_setfield->getMsId());
  7. SetField* origin_setfield = current_set->getSetFields()->value(decided_setfield->getId());
  8. origin_setfield->setResult_Value(decided_setfield->getResult_Value());
  9. delete decided_setfield;
  10. }
  11. delete decide_list;
  12. waitloop.quit();
  13. }
To copy to clipboard, switch view to plain text mode