Mar 5, 2014 at 1:41pm UTC
.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
Mar 5, 2014 at 2:11pm UTC
In Qlist class there is no append() function which takes three parameters. What do you want to do anyway?
Last edited on Mar 5, 2014 at 2:11pm UTC
Mar 5, 2014 at 2:36pm UTC
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.