This article addresses the consensus problem based on static output feedback for a kind of leader-following multi-agent systems. Traditional nonlinear constraints, such as Lipschitz and one-sided Lipschitz, cannot describe most nonlinear functions. The incremental quadratic constraints and switching topologies are considered to extend the application range and practical significance of the existing consensus control protocol. By investigating the topology having a directed spanning tree and constructing a proper Lyapunov function, this article gives sufficient conditions for the consensus problem, including the dwell time by a threshold value. Then, a design method for the static output feedback gain matrix is deduced and an algorithm for achieving consensus is presented. Finally, two simulation examples are used to verify the validity as well as the superiority of the designed protocol. It is the first piece of work to study the consensus problem of multi-agent with incremental quadratic constraints under switching topologies.