Q:

How to open and display pdf using qt in raspberry pi

I have raspberry pi3. I want to open and display pdf file using qt in raspberry pi. So i had written the code, but while running that, it is giving me error like: no module named QtPoppler even i had install poppler using command: sudo apt-get install python-poppler. Any one know how to solve this error? Please Reply.

A:

I assume from your imports that you are using Qt4.
Install the correct version of Poppler for Qt4 :

apt-get install python-poppler-qt4

Then import the python binding of Poppler in the proper way:
import popplerqt4

Source: https://pypi.python.org/pypi/python-poppler-qt4/

