Hi to All,
I'm passing a QMap parameter as follow:

frmExample.h

Qt Code:
  1. class frmExample : public QDialog
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. class frmExample(const QMap <QString, QVariant> &Names, QWidget *parent=0);
  7. //...
  8. }
To copy to clipboard, switch view to plain text mode 

frmExample.cpp

Qt Code:
  1. frmExample::frmExample(const QMap <QString, QVariant> &Names, QWidget *parent) : QDialog(parent)
  2. {
  3. ui.setupUi(this);
  4. //...
  5. }
To copy to clipboard, switch view to plain text mode 

and the compiler returns:

Qt Code:
  1. frmExample.cpp:1 error expected unqualified id before "const"
  2. frmExample.cpp:1 error expected ')' before "const" :confused:
To copy to clipboard, switch view to plain text mode 

I remember that it's possible to pass abstract type as argument in C++, isn't it?

thanks