[SOLVED] QHash string error
i am trying to use QHash as strings instead of arrays as variables. for example, with arrays i need to use ...
but with QHash i can use i think...
below is the code and the error i am getting. i am trying to use a string in the qhash but it is not working.
userselect = "name";
users[userselect] = "test";
error: no match for 'operator' in '((MainWindow*)this)->MainWindow::users[userSelect]'
i solved this post. i had to remove the line QStringList userselect; from the mainwindow.cpp file. sorry for this inconvenience.