We consider higher order mixed finite element methods for the incompressible Stokes or Navier-Stokes equations with Q r -elements for the velocity anddiscontinuous $P_{r-1}$ -elements for the pressure where the orderr can vary from element to elementbetween 2 and a fixed bound $r^*$ .We prove the inf-sup condition uniformly with respect to the meshwidth hon general quadrilateral and hexahedral meshes with hanging nodes.