frescobaldi / qpageview

page-based viewer widget for Qt5/PyQt5
https://qpageview.org/
GNU General Public License v3.0
20 stars 9 forks source link

qpageview just show a blank window, not a pdf! #8

Closed Tecnoll closed 3 years ago

Tecnoll commented 3 years ago

Hello i have a bug!

I am using python 3.8 64-bit, windows 10 64-bit, qpageview 0.6, and this is my code:

` from PyQt5.Qt import * import sys

import qpageview

app = QApplication([])

v = qpageview.View() v.show() v.loadPdf("exercicios.pdf") #file size(74KB)

sys.exit(app.exec_()) ` But it just show a blank widget like a QMainwindow!

whats do wrong???

wbsoft commented 3 years ago

Did you install python-poppler-qt5 binding? Try in python:

import popplerqt5
NgJinXiang14 commented 3 years ago

Did you install python-poppler-qt5 binding? Try in python:

import popplerqt5

image

Mine is same too, just not working somehow

Nevermind, change a bit and it works now image

wbsoft commented 3 years ago

Good luck!