connect(ui->ComboBox,SIGNAL(currentIndexChanged()),this,SLOT(switchcall()));

in qt, combobox items i have none,server,client.when i select one of this it should call switchcall function.in this function i want to perform task depending upon choice in combobox.how to do it??

Edit
Report