...Similar to getpass found on *nix...

Basically I'm prompting for a password on the commandline and I would like the user to type the password in with out it actually echoing back to the console.

Does anyone have any ideas that is crossplatform compatible(win/mac/linux)? Preferably using QT libs (I really don't want to have to link against anything else if I don't need to).