This paper is concerned with the existence of solutions to a class p(x)-Kirchhoff type problem with Dirichlet boundary data. Using a direct variational approach and the theory of the variable exponent Lebesque-Sobolev spaces, we establish some conditions that ensure the existence of nontrivial weak solutions.