Hi,
in a sample application I have created a class member like this:
hash.insert(1, comboBox_1);
hash.insert(2, comboBox_2);
hash.insert(3, comboBox_3);
QHash<int, QComboBox*> hash;
hash.insert(1, comboBox_1);
hash.insert(2, comboBox_2);
hash.insert(3, comboBox_3);
To copy to clipboard, switch view to plain text mode
but during compilation I got the following error:
error: ISO C++ forbids declaration of ‘hash’ with no type
error: expected ‘;’ before ‘.’ token
error: ISO C++ forbids declaration of ‘hash’ with no type
error: expected ‘;’ before ‘.’ token
To copy to clipboard, switch view to plain text mode
for every insert function.
What's wrong?
Regards
Bookmarks