简体   繁体   中英

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.

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM