In this paper, we derive an identity of the q-definite integral of a continuous function f on a finite interval. We then use such identity to prove some new quantum integral inequalities for (p,h)-convex function. The results obtained in this paper generalize previous work in the literature.