If you're using a version of Quartus II lower than 13.0, use the instructions for earlier versions.

Simulation using QSim for version 13.0

Note: In version 13.0 of Quartus II, QSim can be opened directly from within Quartus II, however it only works with Cyclone devices. If you've already chosen a non-Cyclone device, switch to a Cyclone device to do the simulation. Once you know your logic is correct, you can switch back to your original device.