Hi all

I am facing a error segmentation fault in the following code

Qt Code:
  1. mapper = new QSignalMapper ();
  2.  
  3. for(int i=0; i<obj_schedule_table->rowCount(); i++)
  4. {
  5. QWidget *widget1;
  6. widget1 = obj_schedule_table->cellWidget(i,3);
  7. QComboBox *combo = dynamic_cast<QComboBox*>(widget1->children().at(1));
  8. combo->setEditable(false);
  9.  
  10. mapper->setMapping(combo, i);
  11. connect(combo, SIGNAL(activated(QString)), mapper, SLOT (map()));
  12. }
  13. connect(mapper, SIGNAL(mapped(int)), this, SLOT(set_item_combobox_type(int)));
To copy to clipboard, switch view to plain text mode 

I know it may be due to my code is pointing some null pointer but i am not understanding what is the cause of error.

Thanks in advance.