simple password generator in c++/qt