It takes a lot of computational resources to train a machine learning model. So does quantum machine learning. In the NISQ (Noisy Intermediate Scale Quantum) era, there is a need for users who cannot afford quantum computers to utilize quantum servers to complete quantum machine learning with protection privacy of data and model parameters. In this paper, novel homomorphic encryption methods and circuit design with hidden parameter for
R
z
,
R
x
and
R
y
gate are putting forward. Based on which, we further propose quantum neural network (QNN) with privacy protection of input data and training parameters, where hiding model parameters has hardly mentioned in existing literature. To verify the validity of the proposed scheme, we conducted experiments on MNIST and Iris datasets, and obtained losses and accuracy that are almost identical to the original algorithms. Experiments show that our scheme can protect privacy well in the training and have no effect on accuracy of the algorithm. By comparison, the proposed scheme is more secure than most existing literature and requires less extra complexity O(4n).