mardi 21 avril 2015

QTableWidget slot not calling function (argent)

.h

public slots:   
    void actCopy();
    void recordlocation(int,int);

_moc.cc

case 6: _t->actCopy();break;
case 7: _t->recordlocation((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }

.cc

connect(ui->actionCopy1,SIGNAL(clicked()), this, SLOT(actCopy()));
connect(ui->previewTable,SIGNAL(cellClicked(int, int)), this, SLOT(recordlocation(int, int)));

void
TimeSchedulerWindow::actCopy()
{   
    copy_cell(loc.row,loc.column);

}
void 
TimeSchedulerWindow::recordlocation(int row, int column)
{
    loc.row=row;
    loc.column=column;
    copy_cell(loc.row,loc.column);
}

other slot in my program is work....only this two slot not work.. i like calling slot() not calling the function anyone can help?

Aucun commentaire:

Enregistrer un commentaire