In the Qt 5.6 and 5.7 compilers, it gives the error shown below; in the 4.8.7 compiler there is no such error. What could be the problem?
error: no matching function for call to 'TaskConfig::clrMail(QStringList&, int&)' str = clrMail(list, i); ^ TaskConfig::TaskConfig(QObject *parent) : QObject(parent) { } QStringList TaskConfig::isMailBase() { QStringList list; QString str; int size = list.size(); for(int i=0; i<size; i++) { str = clrMail(list, i); // ОШИБКА ТУТ list_result << str; } return list_result; } QString TaskConfig::clrMail(QString list, int x) { QString buf = list.at(x); buf.trimmed(); return buf; } #ifndef TASKCONFIG_H #define TASKCONFIG_H #include <QObject> #include <QStringList> #include <QDateTime> class TaskConfig : public QObject { Q_OBJECT public: explicit TaskConfig(QObject *parent = 0); QStringList isMailBase(); signals: public slots: private: QString clrMail(QString, int); }; #endif // TASKCONFIG_H