Recently, physics-informed neural networks (PINNs) have aroused an upsurge in the field of scientific computing including solving partial differential equations (PDEs), which convert the task of solving PDEs into an optimization challenge by adopting governing equations and definite conditions or observation data as loss functions. Essentially, the underlying logic of PINNs is based on the universal approximation and differentiability properties of classical neural networks (NNs). Recent research has revealed that quantum neural networks (QNNs), known as parameterized quantum circuits, also exhibit universal approximation and differentiability properties. This observation naturally suggests the application of PINNs to QNNs. In this work, we introduce a physics-informed quantum neural network (PI-QNN) by employing the QNN as the function approximator for solving forward and inverse problems of PDEs. The performance of the proposed PI-QNN is evaluated by various forward and inverse PDE problems. Numerical results indicate that PI-QNN demonstrates superior convergence over PINN when solving PDEs with exact solutions that are strongly correlated with trigonometric functions. Moreover, its accuracy surpasses that of PINN by two to three orders of magnitude, while requiring fewer trainable parameters. However, the computational time of PI-QNN exceeds that of PINN due to its operation on classical computers. This limitation may improve with the advent of commercial quantum computers in the future. Furthermore, we briefly investigate the impact of network architecture on PI-QNN performance by examining two different QNN architectures. The results suggest that increasing the number of trainable network layers can enhance the expressiveness of PI-QNN. However, an excessive number of data encoding layers significantly increases computational time, rendering the marginal gains in performance insufficient to compensate for the shortcomings in computational efficiency.