• Forum
  • Lounge
  • no matching call for function to QList::

 
no matching call for function to QList::append(QString&,QDate,bool)ate

.h

class Review : public SoftwareReview_MainWindow
{

public:
Review(QString name, QDate date, bool recommend);
~Review();

//private:

QString Name;
QDate Date;
bool Recommend;

};

.cpp

QList <Review*> Software_Data;

void SoftwareReview_MainWindow::on_addButton_clicked()
{

QMessageBox warning;
warning.setIcon(QMessageBox::Critical);

if(ui->txtName->text() !="")
{

//error is pointing to line below Software_Data.append(ui->txtName->text(),ui->dateEdit_Date->date(),ui->RecomCheckBox->isChecked());

ui->txtName->clear();
ui->txtName->setFocus();
ui->RecomCheckBox->setChecked(false);
recommend ='N';

Please assist in understanding this error and where i am wrong. Thank you
In Qlist class there is no append() function which takes three parameters. What do you want to do anyway?
Last edited on
now its clear about QList. i wanted to store three input values in QList at once. But i guess for me to that i am going to need to perhaps convert all the input values into a .text() so that i can append them as a string rather than individual values.
Topic archived. No new replies allowed.