Hi,
in a sample application I have created a class member like this:

Qt Code:
  1. QHash<int, QComboBox*> hash;
  2. hash.insert(1, comboBox_1);
  3. hash.insert(2, comboBox_2);
  4. hash.insert(3, comboBox_3);
To copy to clipboard, switch view to plain text mode 

but during compilation I got the following error:

Qt Code:
  1. error: ISO C++ forbids declaration of ‘hash’ with no type
  2. error: expected ‘;’ before ‘.’ token
To copy to clipboard, switch view to plain text mode 

for every insert function.

What's wrong?

Regards