parent
7d63c5d90c
commit
f538a155d9
|
@ -31,8 +31,8 @@ def LoadPDF( path: str ):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
# needs an object parent param, and a permanent one, in PyQt6
|
# it wants an Object in PyQt6, but giving it None is better since we are outside the Qt thread here
|
||||||
document = QtPdf.QPdfDocument( HG.client_controller.app )
|
document = QtPdf.QPdfDocument( None )
|
||||||
|
|
||||||
document.load( path )
|
document.load( path )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue