k.qasempour
10th June 2012, 12:22
im trying to set a QHTTPheader fields. and im using the QHttpHeader::setValue ( const QString & key, const QString & value )
function. but i face with this error. so whats the problem here!!?
this is the code and i defined the myReqHeader in hehader file as public.
void MainWindow::setReqHeaderFild()
{
QString a,b;
a= ui->comboBoxReqField->currentText();
b= ui->lineEditreqheader->text();
myReqHeader.setValue( &a, &b);
}
the error:::
error: no matching function for call to 'QHttpRequestHeader::setValue(QString*, QString*)'
what should i do to make this work?
function. but i face with this error. so whats the problem here!!?
this is the code and i defined the myReqHeader in hehader file as public.
void MainWindow::setReqHeaderFild()
{
QString a,b;
a= ui->comboBoxReqField->currentText();
b= ui->lineEditreqheader->text();
myReqHeader.setValue( &a, &b);
}
the error:::
error: no matching function for call to 'QHttpRequestHeader::setValue(QString*, QString*)'
what should i do to make this work?