Quantum measurements of physical quantities are often described as ideal measurements. However, only a few measurements fulfil the conditions of ideal measurements. The aim of the present work is to describe real position measurements with detectors that are able to detect single particles. For this purpose, a detector model is developed that can describe the time dependence of the interaction between a non-relativistic particle and a detector. The example of a position measurement shows that this interaction can be described with the methods of quantum mechanics. At the beginning of a position measurement, the detector behaves as a target consisting of a large number of quantum mechanical systems. In the first reaction, the incident particle interacts with a single atom, electron or nucleus, but not with the whole detector. This reaction and all following reactions are quantum mechanical processes. At the end of the measurement, the detector can be considered as a classical apparatus. A detector is neither a quantum mechanical system nor a classical apparatus. The detector model explains why one obtains a well-defined result for each individual position measurement. It further explains that, in general, it is impossible to predict the outcome of an individual measurement.