Important: Please read the Qt Code of Conduct -

QSqlRelational filter.

  • This is probably asked a million times before, but could not find the short answer. I'm setting up a model->setFilter from a drop down menu. This is the function called by clicking on the dropdown:

    void CostCountry::on_country_activated(const QString &arg1)

    Getting this error: request for member 'arg' in '""', which is of non-class type 'const char [18]'

  • it's


    arg() is a QString method.

  • Embarrassed, did not see that closing parenthesis.

Log in to reply