PySide6-Pdf 6.12.0.140__cp310-abi3-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PySide6/PySide6_Pdf.json +4 -0
- PySide6/Qt6Pdf.dll +0 -0
- PySide6/Qt6PdfQuick.dll +0 -0
- PySide6/Qt6PdfWidgets.dll +0 -0
- PySide6/QtPdf.pyd +0 -0
- PySide6/QtPdf.pyi +304 -0
- PySide6/QtPdfWidgets.pyd +0 -0
- PySide6/QtPdfWidgets.pyi +96 -0
- PySide6/__init__.py +144 -0
- PySide6/_config.py +17 -0
- PySide6/_git_pyside_version.py +21 -0
- PySide6/include/PySide6/QtPdf/pyside6_qtpdf_python.h +127 -0
- PySide6/include/PySide6/QtPdfWidgets/pyside6_qtpdfwidgets_python.h +76 -0
- PySide6/metatypes/qt6pdf_metatypes.json +1515 -0
- PySide6/metatypes/qt6pdfwidgets_metatypes.json +511 -0
- PySide6/py.typed +1 -0
- PySide6/typesystems/typesystem_pdf.xml +36 -0
- PySide6/typesystems/typesystem_pdfwidgets.xml +18 -0
- pyside6_pdf-6.12.0.140.dist-info/METADATA +81 -0
- pyside6_pdf-6.12.0.140.dist-info/RECORD +23 -0
- pyside6_pdf-6.12.0.140.dist-info/WHEEL +5 -0
- pyside6_pdf-6.12.0.140.dist-info/licenses/LicenseRef-Qt-Commercial.txt +8 -0
- pyside6_pdf-6.12.0.140.dist-info/top_level.txt +2 -0
PySide6/PySide6_Pdf.json
ADDED
PySide6/Qt6Pdf.dll
ADDED
|
Binary file
|
PySide6/Qt6PdfQuick.dll
ADDED
|
Binary file
|
|
Binary file
|
PySide6/QtPdf.pyd
ADDED
|
Binary file
|
PySide6/QtPdf.pyi
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
# Copyright (C) 2022 The Qt Company Ltd.
|
|
2
|
+
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
3
|
+
"""
|
|
4
|
+
This file contains the exact signatures for all functions in module
|
|
5
|
+
PySide6.QtPdf, except for defaults which are replaced by "...".
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
# mypy: disable-error-code="override, overload-overlap"
|
|
9
|
+
# Module `PySide6.QtPdf`
|
|
10
|
+
|
|
11
|
+
import PySide6.QtPdf
|
|
12
|
+
import PySide6.QtCore
|
|
13
|
+
import PySide6.QtGui
|
|
14
|
+
|
|
15
|
+
import enum
|
|
16
|
+
import typing
|
|
17
|
+
import collections.abc
|
|
18
|
+
from PySide6.QtCore import Signal
|
|
19
|
+
from shiboken6 import Shiboken
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class QIntList:
|
|
23
|
+
...
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class QPdfBookmarkModel(PySide6.QtCore.QAbstractItemModel):
|
|
27
|
+
documentChanged : typing.ClassVar[Signal] = ... # documentChanged(QPdfDocument*)
|
|
28
|
+
|
|
29
|
+
class Role(enum.IntEnum):
|
|
30
|
+
Title = 0x100
|
|
31
|
+
Level = 0x101
|
|
32
|
+
Page = 0x102
|
|
33
|
+
Location = 0x103
|
|
34
|
+
Zoom = 0x104
|
|
35
|
+
NRoles = 0x105
|
|
36
|
+
|
|
37
|
+
@typing.overload
|
|
38
|
+
def __init__(self, parent: PySide6.QtCore.QObject, /, *, document: PySide6.QtPdf.QPdfDocument | None = ...) -> None: ...
|
|
39
|
+
@typing.overload
|
|
40
|
+
def __init__(self, /, *, document: PySide6.QtPdf.QPdfDocument | None = ...) -> None: ...
|
|
41
|
+
|
|
42
|
+
def columnCount(self, /, parent: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex = ...) -> int: ...
|
|
43
|
+
def data(self, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, role: int, /) -> typing.Any: ...
|
|
44
|
+
def document(self, /) -> PySide6.QtPdf.QPdfDocument: ...
|
|
45
|
+
def index(self, row: int, column: int, /, parent: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex = ...) -> PySide6.QtCore.QModelIndex: ...
|
|
46
|
+
@typing.overload
|
|
47
|
+
def parent(self, /) -> PySide6.QtCore.QObject | None: ...
|
|
48
|
+
@typing.overload
|
|
49
|
+
def parent(self, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, /) -> PySide6.QtCore.QModelIndex: ...
|
|
50
|
+
def roleNames(self, /) -> typing.Dict[int, PySide6.QtCore.QByteArray]: ...
|
|
51
|
+
def rowCount(self, /, parent: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex = ...) -> int: ...
|
|
52
|
+
def setDocument(self, document: PySide6.QtPdf.QPdfDocument, /) -> None: ...
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class QPdfDocument(PySide6.QtCore.QObject):
|
|
56
|
+
pageCountChanged : typing.ClassVar[Signal] = ... # pageCountChanged(int)
|
|
57
|
+
pageModelChanged : typing.ClassVar[Signal] = ... # pageModelChanged()
|
|
58
|
+
passwordChanged : typing.ClassVar[Signal] = ... # passwordChanged()
|
|
59
|
+
passwordRequired : typing.ClassVar[Signal] = ... # passwordRequired()
|
|
60
|
+
statusChanged : typing.ClassVar[Signal] = ... # statusChanged(QPdfDocument::Status)
|
|
61
|
+
|
|
62
|
+
class Error(enum.Enum):
|
|
63
|
+
None_ = 0x0
|
|
64
|
+
Unknown = 0x1
|
|
65
|
+
DataNotYetAvailable = 0x2
|
|
66
|
+
FileNotFound = 0x3
|
|
67
|
+
InvalidFileFormat = 0x4
|
|
68
|
+
IncorrectPassword = 0x5
|
|
69
|
+
UnsupportedSecurityScheme = 0x6
|
|
70
|
+
|
|
71
|
+
class MetaDataField(enum.Enum):
|
|
72
|
+
Title = 0x0
|
|
73
|
+
Subject = 0x1
|
|
74
|
+
Author = 0x2
|
|
75
|
+
Keywords = 0x3
|
|
76
|
+
Producer = 0x4
|
|
77
|
+
Creator = 0x5
|
|
78
|
+
CreationDate = 0x6
|
|
79
|
+
ModificationDate = 0x7
|
|
80
|
+
|
|
81
|
+
class PageModelRole(enum.Enum):
|
|
82
|
+
Label = 0x100
|
|
83
|
+
PointSize = 0x101
|
|
84
|
+
NRoles = 0x102
|
|
85
|
+
|
|
86
|
+
class Status(enum.Enum):
|
|
87
|
+
Null = 0x0
|
|
88
|
+
Loading = 0x1
|
|
89
|
+
Ready = 0x2
|
|
90
|
+
Unloading = 0x3
|
|
91
|
+
Error = 0x4
|
|
92
|
+
|
|
93
|
+
@typing.overload
|
|
94
|
+
def __init__(self, parent: PySide6.QtCore.QObject, /, *, pageCount: int | None = ..., password: str | None = ..., status: PySide6.QtPdf.QPdfDocument.Status | None = ..., pageModel: PySide6.QtCore.QAbstractListModel | None = ...) -> None: ...
|
|
95
|
+
@typing.overload
|
|
96
|
+
def __init__(self, /, *, pageCount: int | None = ..., password: str | None = ..., status: PySide6.QtPdf.QPdfDocument.Status | None = ..., pageModel: PySide6.QtCore.QAbstractListModel | None = ...) -> None: ...
|
|
97
|
+
|
|
98
|
+
def close(self, /) -> None: ...
|
|
99
|
+
def error(self, /) -> PySide6.QtPdf.QPdfDocument.Error: ...
|
|
100
|
+
def getAllText(self, page: int, /) -> PySide6.QtPdf.QPdfSelection: ...
|
|
101
|
+
def getSelection(self, page: int, start: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, end: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, /) -> PySide6.QtPdf.QPdfSelection: ...
|
|
102
|
+
def getSelectionAtIndex(self, page: int, startIndex: int, maxLength: int, /) -> PySide6.QtPdf.QPdfSelection: ...
|
|
103
|
+
@typing.overload
|
|
104
|
+
def load(self, device: PySide6.QtCore.QIODevice, /) -> None: ...
|
|
105
|
+
@typing.overload
|
|
106
|
+
def load(self, fileName: str, /) -> PySide6.QtPdf.QPdfDocument.Error: ...
|
|
107
|
+
def metaData(self, field: PySide6.QtPdf.QPdfDocument.MetaDataField, /) -> typing.Any: ...
|
|
108
|
+
def pageCount(self, /) -> int: ...
|
|
109
|
+
def pageIndexForLabel(self, label: str, /) -> int: ...
|
|
110
|
+
def pageLabel(self, page: int, /) -> str: ...
|
|
111
|
+
def pageModel(self, /) -> PySide6.QtCore.QAbstractListModel: ...
|
|
112
|
+
def pagePointSize(self, page: int, /) -> PySide6.QtCore.QSizeF: ...
|
|
113
|
+
def password(self, /) -> str: ...
|
|
114
|
+
def render(self, page: int, imageSize: PySide6.QtCore.QSize, /, options: PySide6.QtPdf.QPdfDocumentRenderOptions = ..., format: PySide6.QtGui.QImage.Format = ..., fillColor: PySide6.QtGui.QColor | str | PySide6.QtGui.QRgba64 | typing.Any | PySide6.QtCore.Qt.GlobalColor | int = ...) -> PySide6.QtGui.QImage: ...
|
|
115
|
+
def setPassword(self, password: str, /) -> None: ...
|
|
116
|
+
def status(self, /) -> PySide6.QtPdf.QPdfDocument.Status: ...
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class QPdfDocumentRenderOptions(Shiboken.Object):
|
|
120
|
+
class RenderFlag(enum.Flag):
|
|
121
|
+
None_ = 0x0
|
|
122
|
+
Annotations = 0x1
|
|
123
|
+
OptimizedForLcd = 0x2
|
|
124
|
+
Grayscale = 0x4
|
|
125
|
+
ForceHalftone = 0x8
|
|
126
|
+
TextAliased = 0x10
|
|
127
|
+
ImageAliased = 0x20
|
|
128
|
+
PathAliased = 0x40
|
|
129
|
+
|
|
130
|
+
class Rotation(enum.Enum):
|
|
131
|
+
None_ = 0x0
|
|
132
|
+
Clockwise90 = 0x1
|
|
133
|
+
Clockwise180 = 0x2
|
|
134
|
+
Clockwise270 = 0x3
|
|
135
|
+
|
|
136
|
+
@typing.overload
|
|
137
|
+
def __init__(self, /) -> None: ...
|
|
138
|
+
@typing.overload
|
|
139
|
+
def __init__(self, QPdfDocumentRenderOptions: PySide6.QtPdf.QPdfDocumentRenderOptions, /) -> None: ...
|
|
140
|
+
|
|
141
|
+
def __copy__(self, /) -> PySide6.QtPdf.QPdfDocumentRenderOptions: ...
|
|
142
|
+
def __eq__(self, rhs: PySide6.QtPdf.QPdfDocumentRenderOptions, /) -> bool: ...
|
|
143
|
+
def __ne__(self, rhs: PySide6.QtPdf.QPdfDocumentRenderOptions, /) -> bool: ...
|
|
144
|
+
def renderFlags(self, /) -> PySide6.QtPdf.QPdfDocumentRenderOptions.RenderFlag: ...
|
|
145
|
+
def rotation(self, /) -> PySide6.QtPdf.QPdfDocumentRenderOptions.Rotation: ...
|
|
146
|
+
def scaledClipRect(self, /) -> PySide6.QtCore.QRect: ...
|
|
147
|
+
def scaledSize(self, /) -> PySide6.QtCore.QSize: ...
|
|
148
|
+
def setRenderFlags(self, r: PySide6.QtPdf.QPdfDocumentRenderOptions.RenderFlag, /) -> None: ...
|
|
149
|
+
def setRotation(self, r: PySide6.QtPdf.QPdfDocumentRenderOptions.Rotation, /) -> None: ...
|
|
150
|
+
def setScaledClipRect(self, r: PySide6.QtCore.QRect, /) -> None: ...
|
|
151
|
+
def setScaledSize(self, s: PySide6.QtCore.QSize, /) -> None: ...
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class QPdfLink(Shiboken.Object):
|
|
155
|
+
@typing.overload
|
|
156
|
+
def __init__(self, other: PySide6.QtPdf.QPdfLink, /, *, valid: bool | None = ..., page: int | None = ..., location: PySide6.QtCore.QPointF | None = ..., zoom: float | None = ..., url: PySide6.QtCore.QUrl | None = ..., contextBefore: str | None = ..., contextAfter: str | None = ..., rectangles: collections.abc.Sequence[PySide6.QtCore.QRectF] | None = ...) -> None: ...
|
|
157
|
+
@typing.overload
|
|
158
|
+
def __init__(self, /, *, valid: bool | None = ..., page: int | None = ..., location: PySide6.QtCore.QPointF | None = ..., zoom: float | None = ..., url: PySide6.QtCore.QUrl | None = ..., contextBefore: str | None = ..., contextAfter: str | None = ..., rectangles: collections.abc.Sequence[PySide6.QtCore.QRectF] | None = ...) -> None: ...
|
|
159
|
+
|
|
160
|
+
def __copy__(self, /) -> PySide6.QtPdf.QPdfLink: ...
|
|
161
|
+
def __repr__(self, /) -> str: ...
|
|
162
|
+
def contextAfter(self, /) -> str: ...
|
|
163
|
+
def contextBefore(self, /) -> str: ...
|
|
164
|
+
def copyToClipboard(self, /, mode: PySide6.QtGui.QClipboard.Mode = ...) -> None: ...
|
|
165
|
+
def isValid(self, /) -> bool: ...
|
|
166
|
+
def location(self, /) -> PySide6.QtCore.QPointF: ...
|
|
167
|
+
def page(self, /) -> int: ...
|
|
168
|
+
def rectangles(self, /) -> typing.List[PySide6.QtCore.QRectF]: ...
|
|
169
|
+
def swap(self, other: PySide6.QtPdf.QPdfLink, /) -> None: ...
|
|
170
|
+
def toString(self, /) -> str: ...
|
|
171
|
+
def url(self, /) -> PySide6.QtCore.QUrl: ...
|
|
172
|
+
def zoom(self, /) -> float: ...
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
class QPdfLinkModel(PySide6.QtCore.QAbstractListModel):
|
|
176
|
+
documentChanged : typing.ClassVar[Signal] = ... # documentChanged()
|
|
177
|
+
pageChanged : typing.ClassVar[Signal] = ... # pageChanged(int)
|
|
178
|
+
|
|
179
|
+
class Role(enum.Enum):
|
|
180
|
+
Link = 0x100
|
|
181
|
+
Rectangle = 0x101
|
|
182
|
+
Url = 0x102
|
|
183
|
+
Page = 0x103
|
|
184
|
+
Location = 0x104
|
|
185
|
+
Zoom = 0x105
|
|
186
|
+
NRoles = 0x106
|
|
187
|
+
|
|
188
|
+
def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, document: PySide6.QtPdf.QPdfDocument | None = ..., page: int | None = ...) -> None: ...
|
|
189
|
+
|
|
190
|
+
def data(self, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, role: int, /) -> typing.Any: ...
|
|
191
|
+
def document(self, /) -> PySide6.QtPdf.QPdfDocument: ...
|
|
192
|
+
def linkAt(self, point: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, /) -> PySide6.QtPdf.QPdfLink: ...
|
|
193
|
+
def page(self, /) -> int: ...
|
|
194
|
+
def roleNames(self, /) -> typing.Dict[int, PySide6.QtCore.QByteArray]: ...
|
|
195
|
+
def rowCount(self, parent: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, /) -> int: ...
|
|
196
|
+
def setDocument(self, document: PySide6.QtPdf.QPdfDocument, /) -> None: ...
|
|
197
|
+
def setPage(self, page: int, /) -> None: ...
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
class QPdfPageNavigator(PySide6.QtCore.QObject):
|
|
201
|
+
backAvailableChanged : typing.ClassVar[Signal] = ... # backAvailableChanged(bool)
|
|
202
|
+
currentLocationChanged : typing.ClassVar[Signal] = ... # currentLocationChanged(QPointF)
|
|
203
|
+
currentPageChanged : typing.ClassVar[Signal] = ... # currentPageChanged(int)
|
|
204
|
+
currentZoomChanged : typing.ClassVar[Signal] = ... # currentZoomChanged(double)
|
|
205
|
+
forwardAvailableChanged : typing.ClassVar[Signal] = ... # forwardAvailableChanged(bool)
|
|
206
|
+
jumped : typing.ClassVar[Signal] = ... # jumped(QPdfLink)
|
|
207
|
+
|
|
208
|
+
@typing.overload
|
|
209
|
+
def __init__(self, parent: PySide6.QtCore.QObject, /, *, currentPage: int | None = ..., currentLocation: PySide6.QtCore.QPointF | None = ..., currentZoom: float | None = ..., backAvailable: bool | None = ..., forwardAvailable: bool | None = ...) -> None: ...
|
|
210
|
+
@typing.overload
|
|
211
|
+
def __init__(self, /, *, currentPage: int | None = ..., currentLocation: PySide6.QtCore.QPointF | None = ..., currentZoom: float | None = ..., backAvailable: bool | None = ..., forwardAvailable: bool | None = ...) -> None: ...
|
|
212
|
+
|
|
213
|
+
def back(self, /) -> None: ...
|
|
214
|
+
def backAvailable(self, /) -> bool: ...
|
|
215
|
+
def clear(self, /) -> None: ...
|
|
216
|
+
def currentLink(self, /) -> PySide6.QtPdf.QPdfLink: ...
|
|
217
|
+
def currentLocation(self, /) -> PySide6.QtCore.QPointF: ...
|
|
218
|
+
def currentPage(self, /) -> int: ...
|
|
219
|
+
def currentZoom(self, /) -> float: ...
|
|
220
|
+
def forward(self, /) -> None: ...
|
|
221
|
+
def forwardAvailable(self, /) -> bool: ...
|
|
222
|
+
@typing.overload
|
|
223
|
+
def jump(self, destination: PySide6.QtPdf.QPdfLink, /) -> None: ...
|
|
224
|
+
@typing.overload
|
|
225
|
+
def jump(self, page: int, location: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, /, zoom: float | None = ...) -> None: ...
|
|
226
|
+
def update(self, page: int, location: PySide6.QtCore.QPointF | PySide6.QtCore.QPoint | PySide6.QtGui.QPainterPath.Element, zoom: float, /) -> None: ...
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
class QPdfPageRenderer(PySide6.QtCore.QObject):
|
|
230
|
+
documentChanged : typing.ClassVar[Signal] = ... # documentChanged(QPdfDocument*)
|
|
231
|
+
pageRendered : typing.ClassVar[Signal] = ... # pageRendered(int,QSize,QImage,QPdfDocumentRenderOptions,qulonglong)
|
|
232
|
+
renderModeChanged : typing.ClassVar[Signal] = ... # renderModeChanged(QPdfPageRenderer::RenderMode)
|
|
233
|
+
|
|
234
|
+
class RenderMode(enum.Enum):
|
|
235
|
+
MultiThreaded = 0x0
|
|
236
|
+
SingleThreaded = 0x1
|
|
237
|
+
|
|
238
|
+
@typing.overload
|
|
239
|
+
def __init__(self, parent: PySide6.QtCore.QObject, /, *, document: PySide6.QtPdf.QPdfDocument | None = ..., renderMode: PySide6.QtPdf.QPdfPageRenderer.RenderMode | None = ...) -> None: ...
|
|
240
|
+
@typing.overload
|
|
241
|
+
def __init__(self, /, *, document: PySide6.QtPdf.QPdfDocument | None = ..., renderMode: PySide6.QtPdf.QPdfPageRenderer.RenderMode | None = ...) -> None: ...
|
|
242
|
+
|
|
243
|
+
def document(self, /) -> PySide6.QtPdf.QPdfDocument: ...
|
|
244
|
+
def renderMode(self, /) -> PySide6.QtPdf.QPdfPageRenderer.RenderMode: ...
|
|
245
|
+
def requestPage(self, pageNumber: int, imageSize: PySide6.QtCore.QSize, /, options: PySide6.QtPdf.QPdfDocumentRenderOptions = ...) -> int: ...
|
|
246
|
+
def setDocument(self, document: PySide6.QtPdf.QPdfDocument, /) -> None: ...
|
|
247
|
+
def setRenderMode(self, mode: PySide6.QtPdf.QPdfPageRenderer.RenderMode, /) -> None: ...
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
class QPdfSearchModel(PySide6.QtCore.QAbstractListModel):
|
|
251
|
+
countChanged : typing.ClassVar[Signal] = ... # countChanged()
|
|
252
|
+
documentChanged : typing.ClassVar[Signal] = ... # documentChanged()
|
|
253
|
+
searchStringChanged : typing.ClassVar[Signal] = ... # searchStringChanged()
|
|
254
|
+
statusChanged : typing.ClassVar[Signal] = ... # statusChanged(QPdfSearchModel::Status)
|
|
255
|
+
|
|
256
|
+
class Role(enum.Enum):
|
|
257
|
+
Page = 0x100
|
|
258
|
+
IndexOnPage = 0x101
|
|
259
|
+
Location = 0x102
|
|
260
|
+
ContextBefore = 0x103
|
|
261
|
+
ContextAfter = 0x104
|
|
262
|
+
NRoles = 0x105
|
|
263
|
+
|
|
264
|
+
class Status(enum.Enum):
|
|
265
|
+
Null = 0x0
|
|
266
|
+
Searching = 0x1
|
|
267
|
+
Finished = 0x2
|
|
268
|
+
|
|
269
|
+
@typing.overload
|
|
270
|
+
def __init__(self, parent: PySide6.QtCore.QObject, /, *, document: PySide6.QtPdf.QPdfDocument | None = ..., searchString: str | None = ..., count: int | None = ..., status: PySide6.QtPdf.QPdfSearchModel.Status | None = ...) -> None: ...
|
|
271
|
+
@typing.overload
|
|
272
|
+
def __init__(self, /, *, document: PySide6.QtPdf.QPdfDocument | None = ..., searchString: str | None = ..., count: int | None = ..., status: PySide6.QtPdf.QPdfSearchModel.Status | None = ...) -> None: ...
|
|
273
|
+
|
|
274
|
+
def count(self, /) -> int: ...
|
|
275
|
+
def data(self, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, role: int, /) -> typing.Any: ...
|
|
276
|
+
def document(self, /) -> PySide6.QtPdf.QPdfDocument: ...
|
|
277
|
+
def resultAtIndex(self, index: int, /) -> PySide6.QtPdf.QPdfLink: ...
|
|
278
|
+
def resultsOnPage(self, page: int, /) -> typing.List[PySide6.QtPdf.QPdfLink]: ...
|
|
279
|
+
def roleNames(self, /) -> typing.Dict[int, PySide6.QtCore.QByteArray]: ...
|
|
280
|
+
def rowCount(self, parent: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, /) -> int: ...
|
|
281
|
+
def searchString(self, /) -> str: ...
|
|
282
|
+
def setDocument(self, document: PySide6.QtPdf.QPdfDocument, /) -> None: ...
|
|
283
|
+
def setSearchString(self, searchString: str, /) -> None: ...
|
|
284
|
+
def status(self, /) -> PySide6.QtPdf.QPdfSearchModel.Status: ...
|
|
285
|
+
def timerEvent(self, event: PySide6.QtCore.QTimerEvent, /) -> None: ...
|
|
286
|
+
def updatePage(self, page: int, /) -> None: ...
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
class QPdfSelection(Shiboken.Object):
|
|
290
|
+
def __init__(self, other: PySide6.QtPdf.QPdfSelection, /, *, valid: bool | None = ..., bounds: collections.abc.Sequence[PySide6.QtGui.QPolygonF] | None = ..., boundingRectangle: PySide6.QtCore.QRectF | None = ..., text: str | None = ..., startIndex: int | None = ..., endIndex: int | None = ...) -> None: ...
|
|
291
|
+
|
|
292
|
+
def boundingRectangle(self, /) -> PySide6.QtCore.QRectF: ...
|
|
293
|
+
def bounds(self, /) -> typing.List[PySide6.QtGui.QPolygonF]: ...
|
|
294
|
+
def copyToClipboard(self, /, mode: PySide6.QtGui.QClipboard.Mode = ...) -> None: ...
|
|
295
|
+
def endIndex(self, /) -> int: ...
|
|
296
|
+
def isValid(self, /) -> bool: ...
|
|
297
|
+
def startIndex(self, /) -> int: ...
|
|
298
|
+
def swap(self, other: PySide6.QtPdf.QPdfSelection, /) -> None: ...
|
|
299
|
+
def text(self, /) -> str: ...
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
def __dir__(self, /) -> collections.abc.Iterable[str]: ...
|
|
303
|
+
|
|
304
|
+
# eof
|
PySide6/QtPdfWidgets.pyd
ADDED
|
Binary file
|
PySide6/QtPdfWidgets.pyi
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Copyright (C) 2022 The Qt Company Ltd.
|
|
2
|
+
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
3
|
+
"""
|
|
4
|
+
This file contains the exact signatures for all functions in module
|
|
5
|
+
PySide6.QtPdfWidgets, except for defaults which are replaced by "...".
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
# mypy: disable-error-code="override, overload-overlap"
|
|
9
|
+
# Module `PySide6.QtPdfWidgets`
|
|
10
|
+
|
|
11
|
+
import PySide6.QtPdfWidgets
|
|
12
|
+
import PySide6.QtCore
|
|
13
|
+
import PySide6.QtGui
|
|
14
|
+
import PySide6.QtWidgets
|
|
15
|
+
import PySide6.QtPdf
|
|
16
|
+
|
|
17
|
+
import enum
|
|
18
|
+
import typing
|
|
19
|
+
import collections.abc
|
|
20
|
+
from PySide6.QtCore import Signal
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class QIntList:
|
|
24
|
+
...
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class QPdfPageSelector(PySide6.QtWidgets.QWidget):
|
|
28
|
+
currentPageChanged : typing.ClassVar[Signal] = ... # currentPageChanged(int)
|
|
29
|
+
currentPageLabelChanged : typing.ClassVar[Signal] = ... # currentPageLabelChanged(QString)
|
|
30
|
+
documentChanged : typing.ClassVar[Signal] = ... # documentChanged(QPdfDocument*)
|
|
31
|
+
|
|
32
|
+
@typing.overload
|
|
33
|
+
def __init__(self, parent: PySide6.QtWidgets.QWidget, /, *, document: PySide6.QtPdf.QPdfDocument | None = ..., currentPage: int | None = ..., currentPageLabel: str | None = ...) -> None: ...
|
|
34
|
+
@typing.overload
|
|
35
|
+
def __init__(self, /, *, document: PySide6.QtPdf.QPdfDocument | None = ..., currentPage: int | None = ..., currentPageLabel: str | None = ...) -> None: ...
|
|
36
|
+
|
|
37
|
+
def currentPage(self, /) -> int: ...
|
|
38
|
+
def currentPageLabel(self, /) -> str: ...
|
|
39
|
+
def document(self, /) -> PySide6.QtPdf.QPdfDocument: ...
|
|
40
|
+
def setCurrentPage(self, index: int, /) -> None: ...
|
|
41
|
+
def setDocument(self, document: PySide6.QtPdf.QPdfDocument, /) -> None: ...
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class QPdfView(PySide6.QtWidgets.QAbstractScrollArea):
|
|
45
|
+
currentSearchResultIndexChanged: typing.ClassVar[Signal] = ... # currentSearchResultIndexChanged(int)
|
|
46
|
+
documentChanged : typing.ClassVar[Signal] = ... # documentChanged(QPdfDocument*)
|
|
47
|
+
documentMarginsChanged : typing.ClassVar[Signal] = ... # documentMarginsChanged(QMargins)
|
|
48
|
+
pageModeChanged : typing.ClassVar[Signal] = ... # pageModeChanged(QPdfView::PageMode)
|
|
49
|
+
pageSpacingChanged : typing.ClassVar[Signal] = ... # pageSpacingChanged(int)
|
|
50
|
+
searchModelChanged : typing.ClassVar[Signal] = ... # searchModelChanged(QPdfSearchModel*)
|
|
51
|
+
zoomFactorChanged : typing.ClassVar[Signal] = ... # zoomFactorChanged(double)
|
|
52
|
+
zoomModeChanged : typing.ClassVar[Signal] = ... # zoomModeChanged(QPdfView::ZoomMode)
|
|
53
|
+
|
|
54
|
+
class PageMode(enum.Enum):
|
|
55
|
+
SinglePage = 0x0
|
|
56
|
+
MultiPage = 0x1
|
|
57
|
+
|
|
58
|
+
class ZoomMode(enum.Enum):
|
|
59
|
+
Custom = 0x0
|
|
60
|
+
FitToWidth = 0x1
|
|
61
|
+
FitInView = 0x2
|
|
62
|
+
|
|
63
|
+
@typing.overload
|
|
64
|
+
def __init__(self, parent: PySide6.QtWidgets.QWidget, /, *, document: PySide6.QtPdf.QPdfDocument | None = ..., pageMode: PySide6.QtPdfWidgets.QPdfView.PageMode | None = ..., zoomMode: PySide6.QtPdfWidgets.QPdfView.ZoomMode | None = ..., zoomFactor: float | None = ..., pageSpacing: int | None = ..., documentMargins: PySide6.QtCore.QMargins | None = ..., searchModel: PySide6.QtPdf.QPdfSearchModel | None = ..., currentSearchResultIndex: int | None = ...) -> None: ...
|
|
65
|
+
@typing.overload
|
|
66
|
+
def __init__(self, /, *, document: PySide6.QtPdf.QPdfDocument | None = ..., pageMode: PySide6.QtPdfWidgets.QPdfView.PageMode | None = ..., zoomMode: PySide6.QtPdfWidgets.QPdfView.ZoomMode | None = ..., zoomFactor: float | None = ..., pageSpacing: int | None = ..., documentMargins: PySide6.QtCore.QMargins | None = ..., searchModel: PySide6.QtPdf.QPdfSearchModel | None = ..., currentSearchResultIndex: int | None = ...) -> None: ...
|
|
67
|
+
|
|
68
|
+
def currentSearchResultIndex(self, /) -> int: ...
|
|
69
|
+
def document(self, /) -> PySide6.QtPdf.QPdfDocument: ...
|
|
70
|
+
def documentMargins(self, /) -> PySide6.QtCore.QMargins: ...
|
|
71
|
+
def mouseMoveEvent(self, event: PySide6.QtGui.QMouseEvent, /) -> None: ...
|
|
72
|
+
def mousePressEvent(self, event: PySide6.QtGui.QMouseEvent, /) -> None: ...
|
|
73
|
+
def mouseReleaseEvent(self, event: PySide6.QtGui.QMouseEvent, /) -> None: ...
|
|
74
|
+
def pageMode(self, /) -> PySide6.QtPdfWidgets.QPdfView.PageMode: ...
|
|
75
|
+
def pageNavigator(self, /) -> PySide6.QtPdf.QPdfPageNavigator: ...
|
|
76
|
+
def pageSpacing(self, /) -> int: ...
|
|
77
|
+
def paintEvent(self, event: PySide6.QtGui.QPaintEvent, /) -> None: ...
|
|
78
|
+
def resizeEvent(self, event: PySide6.QtGui.QResizeEvent, /) -> None: ...
|
|
79
|
+
def scrollContentsBy(self, dx: int, dy: int, /) -> None: ...
|
|
80
|
+
def searchModel(self, /) -> PySide6.QtPdf.QPdfSearchModel: ...
|
|
81
|
+
def setCurrentSearchResultIndex(self, currentResult: int, /) -> None: ...
|
|
82
|
+
def setDocument(self, document: PySide6.QtPdf.QPdfDocument, /) -> None: ...
|
|
83
|
+
def setDocumentMargins(self, margins: PySide6.QtCore.QMargins, /) -> None: ...
|
|
84
|
+
def setPageMode(self, mode: PySide6.QtPdfWidgets.QPdfView.PageMode, /) -> None: ...
|
|
85
|
+
def setPageSpacing(self, spacing: int, /) -> None: ...
|
|
86
|
+
def setSearchModel(self, searchModel: PySide6.QtPdf.QPdfSearchModel, /) -> None: ...
|
|
87
|
+
def setZoomFactor(self, factor: float, /) -> None: ...
|
|
88
|
+
def setZoomMode(self, mode: PySide6.QtPdfWidgets.QPdfView.ZoomMode, /) -> None: ...
|
|
89
|
+
def wheelEvent(self, event: PySide6.QtGui.QWheelEvent, /) -> None: ...
|
|
90
|
+
def zoomFactor(self, /) -> float: ...
|
|
91
|
+
def zoomMode(self, /) -> PySide6.QtPdfWidgets.QPdfView.ZoomMode: ...
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def __dir__(self, /) -> collections.abc.Iterable[str]: ...
|
|
95
|
+
|
|
96
|
+
# eof
|
PySide6/__init__.py
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
from types import ModuleType
|
|
5
|
+
# mypy: disable-error-code="name-defined"
|
|
6
|
+
|
|
7
|
+
# __all__ is computed below.
|
|
8
|
+
__pre_all__ = ["QtCore", "QtGui", "QtWidgets", "QtPrintSupport", "QtSql", "QtNetwork", "QtTest", "QtConcurrent", "QtDBus", "QtDesigner", "QtXml", "QtHelp", "QtMultimedia", "QtMultimediaWidgets", "QtOpenGL", "QtOpenGLWidgets", "QtPdf", "QtPdfWidgets", "QtPositioning", "QtLocation", "QtNetworkAuth", "QtNfc", "QtQml", "QtQuick", "QtQuick3D", "QtQuickControls2", "QtCanvasPainter", "QtQuickTest", "QtQuickWidgets", "QtLabsStyleKit", "QtRemoteObjects", "QtScxml", "QtSensors", "QtSerialPort", "QtSerialBus", "QtStateMachine", "QtTextToSpeech", "QtCharts", "QtSpatialAudio", "QtSvg", "QtSvgWidgets", "QtDataVisualization", "QtGraphs", "QtGraphsWidgets", "QtBluetooth", "QtUiTools", "QtAxContainer", "QtWebChannel", "QtWebEngineCore", "QtWebEngineWidgets", "QtWebEngineQuick", "QtWebSockets", "QtHttpServer", "QtWebView", "Qt3DCore", "Qt3DRender", "Qt3DInput", "Qt3DLogic", "Qt3DAnimation", "Qt3DExtras"]
|
|
9
|
+
__version__ = "6.12.0"
|
|
10
|
+
__version_info__ = (6, 12, 0, "", "")
|
|
11
|
+
|
|
12
|
+
SKIP_MYPY_TEST = bool("")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _additional_dll_directories(package_dir):
|
|
16
|
+
# Find shiboken6 relative to the package directory.
|
|
17
|
+
root = Path(package_dir).parent
|
|
18
|
+
# Check for a flat .zip as deployed by cx_free(PYSIDE-1257)
|
|
19
|
+
if root.suffix == '.zip':
|
|
20
|
+
return []
|
|
21
|
+
shiboken6 = root / 'shiboken6'
|
|
22
|
+
if shiboken6.is_dir(): # Standard case, only shiboken6 is needed
|
|
23
|
+
return [shiboken6]
|
|
24
|
+
# The below code is for the build process when generate_pyi.py
|
|
25
|
+
# is executed in the build directory. We need libpyside and Qt in addition.
|
|
26
|
+
shiboken6 = Path(root).parent / 'shiboken6' / 'libshiboken'
|
|
27
|
+
if not shiboken6.is_dir():
|
|
28
|
+
raise ImportError(str(shiboken6) + ' does not exist')
|
|
29
|
+
result = [shiboken6, root / 'libpyside']
|
|
30
|
+
libpysideqml = root / 'libpysideqml'
|
|
31
|
+
if libpysideqml.is_dir():
|
|
32
|
+
result.append(libpysideqml)
|
|
33
|
+
for path in os.environ.get('PATH').split(';'):
|
|
34
|
+
if path:
|
|
35
|
+
if (Path(path) / 'qmake.exe').exists():
|
|
36
|
+
result.append(path)
|
|
37
|
+
break
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _setupQtDirectories():
|
|
42
|
+
# On Windows we need to explicitly import the shiboken6 module so
|
|
43
|
+
# that the libshiboken.dll dependency is loaded by the time a
|
|
44
|
+
# Qt module is imported. Otherwise due to PATH not containing
|
|
45
|
+
# the shiboken6 module path, the Qt module import would fail
|
|
46
|
+
# due to the missing libshiboken dll.
|
|
47
|
+
# In addition, as of Python 3.8, the shiboken package directory
|
|
48
|
+
# must be added to the DLL search paths so that shiboken6.dll
|
|
49
|
+
# is found.
|
|
50
|
+
# We need to do the same on Linux and macOS, because we do not
|
|
51
|
+
# embed rpaths into the PySide6 libraries that would point to
|
|
52
|
+
# the libshiboken library location. Importing the module
|
|
53
|
+
# loads the libraries into the process memory beforehand, and
|
|
54
|
+
# thus takes care of it for us.
|
|
55
|
+
|
|
56
|
+
pyside_package_dir = Path(__file__).parent.resolve()
|
|
57
|
+
|
|
58
|
+
if sys.platform == 'win32':
|
|
59
|
+
for dir in _additional_dll_directories(pyside_package_dir):
|
|
60
|
+
os.add_dll_directory(os.fspath(dir))
|
|
61
|
+
|
|
62
|
+
try:
|
|
63
|
+
# PYSIDE-1497: we use the build dir or install dir or site-packages, whatever the path
|
|
64
|
+
# setting dictates. There is no longer a difference in path structure.
|
|
65
|
+
global Shiboken
|
|
66
|
+
from shiboken6 import Shiboken
|
|
67
|
+
except Exception as e:
|
|
68
|
+
paths = ', '.join(sys.path)
|
|
69
|
+
print(f"PySide6/__init__.py: Unable to import Shiboken from {paths}: {e}",
|
|
70
|
+
file=sys.stderr)
|
|
71
|
+
raise
|
|
72
|
+
|
|
73
|
+
if sys.platform == 'win32':
|
|
74
|
+
# PATH has to contain the package directory, otherwise plugins
|
|
75
|
+
# won't be able to find their required Qt libraries (e.g. the
|
|
76
|
+
# svg image plugin won't find Qt5Svg.dll).
|
|
77
|
+
os.environ['PATH'] = os.fspath(pyside_package_dir) + os.pathsep + os.environ['PATH']
|
|
78
|
+
|
|
79
|
+
# On Windows, add the PySide6\openssl folder (created by setup.py's
|
|
80
|
+
# --openssl option) to the PATH so that the SSL DLLs can be found
|
|
81
|
+
# when Qt tries to dynamically load them. Tell Qt to load them and
|
|
82
|
+
# then reset the PATH.
|
|
83
|
+
openssl_dir = pyside_package_dir / 'openssl'
|
|
84
|
+
if openssl_dir.exists():
|
|
85
|
+
path = os.environ['PATH']
|
|
86
|
+
try:
|
|
87
|
+
os.environ['PATH'] = os.fspath(openssl_dir) + os.pathsep + path
|
|
88
|
+
try:
|
|
89
|
+
from . import QtNetwork
|
|
90
|
+
except ImportError:
|
|
91
|
+
pass
|
|
92
|
+
else:
|
|
93
|
+
QtNetwork.QSslSocket.supportsSsl()
|
|
94
|
+
finally:
|
|
95
|
+
os.environ['PATH'] = path
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def _find_all_qt_modules():
|
|
99
|
+
# Since the wheel split, the __all__ variable cannot be computed statically,
|
|
100
|
+
# because we don't know all modules in advance.
|
|
101
|
+
|
|
102
|
+
# Instead, we use __getattr__ which is supported since Python 3.7
|
|
103
|
+
# and create the __all__ list on demand when needed.
|
|
104
|
+
unordered = set()
|
|
105
|
+
pattern = "Qt*.pyd" if sys.platform == "win32" else "Qt*.so"
|
|
106
|
+
for module in Path(__file__).resolve().parent.glob(pattern):
|
|
107
|
+
name = module.name[:module.name.find(".")]
|
|
108
|
+
if name.endswith("_d"): # Windows debug suffix?
|
|
109
|
+
name = name[:-2]
|
|
110
|
+
unordered.add(name)
|
|
111
|
+
ordered_part = __pre_all__
|
|
112
|
+
result = []
|
|
113
|
+
for name in ordered_part:
|
|
114
|
+
if name in unordered:
|
|
115
|
+
result.append(name)
|
|
116
|
+
unordered.remove(name)
|
|
117
|
+
result.extend(unordered)
|
|
118
|
+
return result
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# Provide the __all__ variable only on access.
|
|
122
|
+
def __getattr__(name: str) -> list[str]:
|
|
123
|
+
if name == "__all__":
|
|
124
|
+
global __all__
|
|
125
|
+
__all__ = _find_all_qt_modules()
|
|
126
|
+
return __all__
|
|
127
|
+
raise AttributeError(f"module '{__name__}' has no attribute '{name}' :)")
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
# Be prepared that people can access the module dict instead.
|
|
131
|
+
class ModuleDict(dict):
|
|
132
|
+
def __missing__(self, key):
|
|
133
|
+
if key == "__all__":
|
|
134
|
+
self[key] = __all__ if "__all__" in globals() else __getattr__("__all__")
|
|
135
|
+
return __all__
|
|
136
|
+
raise KeyError(f"dict of module '{__name__}' has no key '{key}' :)")
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class SubModule(ModuleType):
|
|
140
|
+
pass
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
_setupQtDirectories()
|
|
144
|
+
Shiboken.replaceModuleDict(sys.modules["PySide6"], SubModule, ModuleDict(globals()))
|
PySide6/_config.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
built_modules = list(name for name in
|
|
2
|
+
"Core;Gui;Widgets;PrintSupport;Sql;Network;Test;Concurrent;DBus;Designer;Xml;Help;Multimedia;MultimediaWidgets;OpenGL;OpenGLWidgets;Pdf;PdfWidgets;Positioning;Location;NetworkAuth;Nfc;Qml;Quick;Quick3D;QuickControls2;CanvasPainter;QuickTest;QuickWidgets;LabsStyleKit;RemoteObjects;Scxml;Sensors;SerialPort;SerialBus;StateMachine;TextToSpeech;Charts;SpatialAudio;Svg;SvgWidgets;DataVisualization;Graphs;GraphsWidgets;Bluetooth;UiTools;AxContainer;WebChannel;WebEngineCore;WebEngineWidgets;WebEngineQuick;WebSockets;HttpServer;WebView;3DCore;3DRender;3DInput;3DLogic;3DAnimation;3DExtras"
|
|
3
|
+
.split(";"))
|
|
4
|
+
|
|
5
|
+
shiboken_library_soversion = "6.12"
|
|
6
|
+
pyside_library_soversion = "6.12"
|
|
7
|
+
|
|
8
|
+
version = "6.12.0"
|
|
9
|
+
version_info = (6, 12, 0, "", "")
|
|
10
|
+
|
|
11
|
+
__build_date__ = '2026-10-05T13:28:34+00:00'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
__setup_py_package_version__ = '6.12.0'
|
|
17
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Copyright (C) 2022 The Qt Company Ltd.
|
|
2
|
+
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
major_version = "6"
|
|
6
|
+
minor_version = "12"
|
|
7
|
+
patch_version = "0"
|
|
8
|
+
chromium_version = "140"
|
|
9
|
+
|
|
10
|
+
# For example: "a", "b", "rc"
|
|
11
|
+
# (which means "alpha", "beta", "release candidate").
|
|
12
|
+
# An empty string means the generated package will be an official release.
|
|
13
|
+
release_version_type = ""
|
|
14
|
+
|
|
15
|
+
# For example: "1", "2" (which means "beta1", "beta2", if type is "b").
|
|
16
|
+
pre_release_version = ""
|
|
17
|
+
|
|
18
|
+
if __name__ == '__main__':
|
|
19
|
+
# Used by CMake.
|
|
20
|
+
print(f'{major_version};{minor_version};{patch_version};'
|
|
21
|
+
f'{release_version_type};{pre_release_version}')
|