The transverse momentum (p t ) dependence of hadron flow at SPS energies is studied. In particular, the nucleon and pion flow in S+S and Pb+Pb collisions at 160A GeV is investigated. For simulations the microscopic quarkgluon string model (QGSM) is applied. It is found that the directed flow of pions v 1 (y, ∆p t ) changes sign from a negative slope in the low-p t region to a positive slope at p t ≥ 0.6 GeV/c as recently also observed experimentally. The change of the flow behaviour can be explained by early emission times for high-p t pions. We further found that a substantial amount of high-p t pions are produced in the very first primary NN collisions at the surface region of the touching nuclei. Thus, at SPS energies high-p t nucleons seem to be a better probe for the hot and dense early phase of nuclear collisions than high-p t pions. Both, in the light and in the heavy system the pion directed flow v 1 (p t , ∆y) exhibits large negative values when the transverse momentum approaches zero, as also seen experimentally in Pb+Pb collisions. It is found that this effect is caused by nuclear shadowing. The proton flow, in contrary, shows the typical linear increase with rising p t .