PyQt6-WebEngine 6.7.0__tar.gz → 6.9.0__tar.gz

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.
Files changed (47) hide show
  1. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/ChangeLog +54 -0
  2. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/NEWS +6 -0
  3. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/PKG-INFO +2 -2
  4. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/pyproject.toml +2 -2
  5. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/QtWebEngineCoremod.sip +9 -5
  6. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qtwebenginecoreglobal.sip +1 -1
  7. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginecertificateerror.sip +4 -1
  8. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineclientcertificateselection.sip +1 -1
  9. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineclientcertificatestore.sip +1 -1
  10. pyqt6_webengine-6.9.0/sip/QtWebEngineCore/qwebengineclienthints.sip +56 -0
  11. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginecontextmenurequest.sip +1 -1
  12. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginecookiestore.sip +1 -1
  13. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginedesktopmediarequest.sip +1 -1
  14. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginedownloadrequest.sip +1 -1
  15. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginefilesystemaccessrequest.sip +1 -1
  16. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginefindtextresult.sip +1 -1
  17. pyqt6_webengine-6.9.0/sip/QtWebEngineCore/qwebengineframe.sip +133 -0
  18. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginefullscreenrequest.sip +1 -1
  19. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineglobalsettings.sip +1 -1
  20. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginehistory.sip +1 -1
  21. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginehttprequest.sip +1 -1
  22. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineloadinginfo.sip +8 -2
  23. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginenavigationrequest.sip +5 -5
  24. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginenewwindowrequest.sip +1 -1
  25. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginenotification.sip +1 -1
  26. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginepage.sip +27 -2
  27. pyqt6_webengine-6.9.0/sip/QtWebEngineCore/qwebenginepermission.sip +76 -0
  28. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineprofile.sip +50 -14
  29. pyqt6_webengine-6.9.0/sip/QtWebEngineCore/qwebengineprofilebuilder.sip +42 -0
  30. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginequotarequest.sip +1 -1
  31. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineregisterprotocolhandlerrequest.sip +1 -1
  32. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginescript.sip +1 -1
  33. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginescriptcollection.sip +1 -1
  34. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginesettings.sip +29 -6
  35. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineurlrequestinfo.sip +7 -1
  36. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineurlrequestinterceptor.sip +1 -1
  37. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineurlrequestjob.sip +1 -1
  38. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineurlscheme.sip +1 -1
  39. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebengineurlschemehandler.sip +1 -1
  40. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineCore/qwebenginewebauthuxrequest.sip +1 -1
  41. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineQuick/QtWebEngineQuickmod.sip +2 -2
  42. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineQuick/qquickwebengineprofile.sip +42 -1
  43. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineQuick/qtwebenginequickglobal.sip +1 -1
  44. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineWidgets/QtWebEngineWidgetsmod.sip +2 -2
  45. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/sip/QtWebEngineWidgets/qwebengineview.sip +4 -1
  46. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/LICENSE +0 -0
  47. {PyQt6_WebEngine-6.7.0 → pyqt6_webengine-6.9.0}/README.md +0 -0
@@ -1,3 +1,57 @@
1
+ 2025-04-03 Phil Thompson <phil@riverbankcomputing.com>
2
+
3
+ * NEWS:
4
+ Updated the NEWS file.
5
+ [e2ad25594dcc] [6.9.0]
6
+
7
+ 2025-03-21 Phil Thompson <phil@riverbankcomputing.com>
8
+
9
+ * PyQt6-WebEngine.msp:
10
+ Updated for Qt v6.9.0rc.
11
+ [78cc618f8ea0]
12
+
13
+ 2024-12-12 Phil Thompson <phil@riverbankcomputing.com>
14
+
15
+ * Merged missing fix from upstream.
16
+ [61b9b527fce3]
17
+
18
+ 2024-11-02 Phil Thompson <phil@riverbankcomputing.com>
19
+
20
+ * NEWS, PyQt6-WebEngine.msp:
21
+ Fixed building when not concatanating generated files.
22
+ [546f20b0bde8]
23
+
24
+ 2024-12-06 Phil Thompson <phil@riverbankcomputing.com>
25
+
26
+ * .hgtags:
27
+ Added tag 6.8.0 for changeset 33da3a9ed997
28
+ [7c31575f7a16]
29
+
30
+ 2024-10-24 Phil Thompson <phil@riverbankcomputing.com>
31
+
32
+ * NEWS:
33
+ Updated the NEWS file.
34
+ [33da3a9ed997] [6.8.0]
35
+
36
+ 2024-10-14 Phil Thompson <phil@riverbankcomputing.com>
37
+
38
+ * pyproject.toml:
39
+ Updated the build system requirements to SIP v6.9 and PyQt-builder
40
+ v1.17.
41
+ [2ca014817aec]
42
+
43
+ 2024-10-04 Phil Thompson <phil@riverbankcomputing.com>
44
+
45
+ * PyQt6-WebEngine.msp, mksccode/QtWebEngineCore.versions:
46
+ Updated for Qt v6.8.0.
47
+ [a921a4c073f6]
48
+
49
+ 2024-04-20 Phil Thompson <phil@riverbankcomputing.com>
50
+
51
+ * .hgtags:
52
+ Added tag 6.7.0 for changeset cb8b0faaaac7
53
+ [fc6338be5751]
54
+
1
55
  2024-04-04 Phil Thompson <phil@riverbankcomputing.com>
2
56
 
3
57
  * NEWS, PyQt6-WebEngine.msp:
@@ -1,3 +1,9 @@
1
+ v6.9.0 3rd April 2025
2
+ - Added support for Qt v6.9.
3
+
4
+ v6.8.0 2nd November 2024
5
+ - Added support for Qt v6.8.
6
+
1
7
  v6.7.0 4th April 2024
2
8
  - Added support for Qt v6.7.
3
9
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyQt6-WebEngine
3
- Version: 6.7.0
4
- Requires-Python: >=3.8
3
+ Version: 6.9.0
4
+ Requires-Python: >=3.9
5
5
  Summary: Python bindings for the Qt WebEngine framework
6
6
  Description-Content-Type: text/markdown
7
7
  Project-Url: homepage, https://www.riverbankcomputing.com/software/pyqtwebengine/
@@ -1,11 +1,11 @@
1
1
  # Specify the build system requirements.
2
2
  [build-system]
3
- requires = ["sip >=6.8, <7", "PyQt-builder >=1.11, <2"]
3
+ requires = ["sip >=6.9, <7", "PyQt-builder >=1.17, <2"]
4
4
  build-backend = "sipbuild.api"
5
5
 
6
6
  [project]
7
7
  name = "PyQt6-WebEngine"
8
- version = "6.7.0"
8
+ version = "6.9.0"
9
9
  description = "Python bindings for the Qt WebEngine framework"
10
10
  readme = "README.md"
11
11
  urls.homepage = "https://www.riverbankcomputing.com/software/pyqtwebengine/"
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -27,10 +27,10 @@
27
27
  %Import QtNetwork/QtNetworkmod.sip
28
28
  %Import QtWebChannel/QtWebChannelmod.sip
29
29
 
30
- %Timeline {QtWebEngine_6_0_0 QtWebEngine_6_1_0 QtWebEngine_6_2_0 QtWebEngine_6_3_0 QtWebEngine_6_4_0 QtWebEngine_6_5_0 QtWebEngine_6_6_0 QtWebEngine_6_7_0}
30
+ %Timeline {QtWebEngine_6_0_0 QtWebEngine_6_1_0 QtWebEngine_6_2_0 QtWebEngine_6_3_0 QtWebEngine_6_4_0 QtWebEngine_6_5_0 QtWebEngine_6_6_0 QtWebEngine_6_7_0 QtWebEngine_6_8_0 QtWebEngine_6_9_0}
31
31
 
32
32
  %Copying
33
- Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
33
+ Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
34
34
 
35
35
  This file is part of PyQt6-WebEngine.
36
36
 
@@ -54,20 +54,22 @@ int PYQT_WEBENGINE_VERSION;
54
54
  const char *PYQT_WEBENGINE_VERSION_STR;
55
55
 
56
56
  %ModuleCode
57
- static int PYQT_WEBENGINE_VERSION = 0x060700;
58
- static const char *PYQT_WEBENGINE_VERSION_STR = "6.7.0";
57
+ static int PYQT_WEBENGINE_VERSION = 0x060900;
58
+ static const char *PYQT_WEBENGINE_VERSION_STR = "6.9.0";
59
59
  %End
60
60
 
61
61
  %Include qtwebenginecoreglobal.sip
62
62
  %Include qwebenginecertificateerror.sip
63
63
  %Include qwebengineclientcertificateselection.sip
64
64
  %Include qwebengineclientcertificatestore.sip
65
+ %Include qwebengineclienthints.sip
65
66
  %Include qwebenginecontextmenurequest.sip
66
67
  %Include qwebenginecookiestore.sip
67
68
  %Include qwebenginedesktopmediarequest.sip
68
69
  %Include qwebenginedownloadrequest.sip
69
70
  %Include qwebenginefilesystemaccessrequest.sip
70
71
  %Include qwebenginefindtextresult.sip
72
+ %Include qwebengineframe.sip
71
73
  %Include qwebenginefullscreenrequest.sip
72
74
  %Include qwebengineglobalsettings.sip
73
75
  %Include qwebenginehistory.sip
@@ -77,7 +79,9 @@ static const char *PYQT_WEBENGINE_VERSION_STR = "6.7.0";
77
79
  %Include qwebenginenewwindowrequest.sip
78
80
  %Include qwebenginenotification.sip
79
81
  %Include qwebenginepage.sip
82
+ %Include qwebenginepermission.sip
80
83
  %Include qwebengineprofile.sip
84
+ %Include qwebengineprofilebuilder.sip
81
85
  %Include qwebenginequotarequest.sip
82
86
  %Include qwebengineregisterprotocolhandlerrequest.sip
83
87
  %Include qwebenginescript.sip
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -58,4 +58,7 @@ public:
58
58
  QWebEngineCertificateError::Type type() const;
59
59
  QString description() const;
60
60
  void acceptCertificate();
61
+ %If (QtWebEngine_6_8_0 -)
62
+ bool isMainFrame() const;
63
+ %End
61
64
  };
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -0,0 +1,56 @@
1
+ // qwebengineclienthints.sip generated by MetaSIP
2
+ //
3
+ // This file is part of the QtWebEngineCore Python extension module.
4
+ //
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
+ //
7
+ // This file is part of PyQt6-WebEngine.
8
+ //
9
+ // This file may be used under the terms of the GNU General Public License
10
+ // version 3.0 as published by the Free Software Foundation and appearing in
11
+ // the file LICENSE included in the packaging of this file. Please review the
12
+ // following information to ensure the GNU General Public License version 3.0
13
+ // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14
+ //
15
+ // If you do not wish to use this file under the terms of the GPL version 3.0
16
+ // then you may purchase a commercial license. For more information contact
17
+ // info@riverbankcomputing.com.
18
+ //
19
+ // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
+ // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
+
22
+
23
+ %If (QtWebEngine_6_8_0 -)
24
+
25
+ class QWebEngineClientHints : public QObject /NoDefaultCtors/
26
+ {
27
+ %TypeHeaderCode
28
+ #include <qwebengineclienthints.h>
29
+ %End
30
+
31
+ public:
32
+ virtual ~QWebEngineClientHints();
33
+ QString arch() const;
34
+ QString platform() const;
35
+ QString model() const;
36
+ bool isMobile() const;
37
+ QString fullVersion() const;
38
+ QString platformVersion() const;
39
+ QString bitness() const;
40
+ QVariantMap fullVersionList() const;
41
+ bool isWow64() const;
42
+ void setArch(const QString &);
43
+ void setPlatform(const QString &);
44
+ void setModel(const QString &);
45
+ void setIsMobile(bool);
46
+ void setFullVersion(const QString &);
47
+ void setPlatformVersion(const QString &);
48
+ void setBitness(const QString &);
49
+ void setFullVersionList(const QVariantMap &);
50
+ void setIsWow64(bool);
51
+ bool isAllClientHintsEnabled();
52
+ void setAllClientHintsEnabled(bool enabled);
53
+ void resetAll();
54
+ };
55
+
56
+ %End
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -0,0 +1,133 @@
1
+ // qwebengineframe.sip generated by MetaSIP
2
+ //
3
+ // This file is part of the QtWebEngineCore Python extension module.
4
+ //
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
+ //
7
+ // This file is part of PyQt6-WebEngine.
8
+ //
9
+ // This file may be used under the terms of the GNU General Public License
10
+ // version 3.0 as published by the Free Software Foundation and appearing in
11
+ // the file LICENSE included in the packaging of this file. Please review the
12
+ // following information to ensure the GNU General Public License version 3.0
13
+ // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14
+ //
15
+ // If you do not wish to use this file under the terms of the GPL version 3.0
16
+ // then you may purchase a commercial license. For more information contact
17
+ // info@riverbankcomputing.com.
18
+ //
19
+ // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
+ // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
+
22
+
23
+ %If (QtWebEngine_6_8_0 -)
24
+
25
+ class QWebEngineFrame /NoDefaultCtors/
26
+ {
27
+ %TypeHeaderCode
28
+ #include <qwebengineframe.h>
29
+ %End
30
+
31
+ %TypeCode
32
+ #include <QVariant>
33
+ %End
34
+
35
+ public:
36
+ bool isValid() const;
37
+ QString name() const;
38
+ QString htmlName() const;
39
+ QList<QWebEngineFrame> children() const;
40
+ QUrl url() const;
41
+ QSizeF size() const;
42
+ bool isMainFrame() const;
43
+ void runJavaScript(const QString &script, quint32 worldId = 0);
44
+ void runJavaScript(const QString &script, SIP_PYCALLABLE callback /TypeHint="Callable[[Any], None]"/);
45
+ %MethodCode
46
+ // Make sure the callable doesn't get garbage collected until it is invoked.
47
+ Py_INCREF(a1);
48
+
49
+ Py_BEGIN_ALLOW_THREADS
50
+
51
+ sipCpp->runJavaScript(*a0, [a1](const QVariant &arg) {
52
+ SIP_BLOCK_THREADS
53
+
54
+ PyObject *res;
55
+
56
+ res = sipCallMethod(NULL, a1, "N", new QVariant(arg), sipType_QVariant, NULL);
57
+
58
+ Py_DECREF(a1);
59
+
60
+ if (!res)
61
+ pyqt6_qtwebenginecore_err_print();
62
+ else
63
+ Py_DECREF(res);
64
+
65
+ SIP_UNBLOCK_THREADS
66
+ });
67
+
68
+ Py_END_ALLOW_THREADS
69
+ %End
70
+
71
+ void runJavaScript(const QString &script, quint32 worldId, SIP_PYCALLABLE callback /TypeHint="Callable[[Any], None]"/);
72
+ %MethodCode
73
+ // Make sure the callable doesn't get garbage collected until it is invoked.
74
+ Py_INCREF(a2);
75
+
76
+ Py_BEGIN_ALLOW_THREADS
77
+
78
+ sipCpp->runJavaScript(*a0, a1, [a2](const QVariant &arg) {
79
+ SIP_BLOCK_THREADS
80
+
81
+ PyObject *res;
82
+
83
+ res = sipCallMethod(NULL, a2, "N", new QVariant(arg), sipType_QVariant, NULL);
84
+
85
+ Py_DECREF(a2);
86
+
87
+ if (!res)
88
+ pyqt6_qtwebenginecore_err_print();
89
+ else
90
+ Py_DECREF(res);
91
+
92
+ SIP_UNBLOCK_THREADS
93
+ });
94
+
95
+ Py_END_ALLOW_THREADS
96
+ %End
97
+
98
+ void printToPdf(const QString &filePath);
99
+ void printToPdf(SIP_PYCALLABLE callback /TypeHint="Callable[[QByteArray], None]"/);
100
+ %MethodCode
101
+ // Make sure the callable doesn't get garbage collected until it is invoked.
102
+ Py_INCREF(a0);
103
+
104
+ Py_BEGIN_ALLOW_THREADS
105
+
106
+ sipCpp->printToPdf([a0](const QByteArray &arg) {
107
+ SIP_BLOCK_THREADS
108
+
109
+ PyObject *res;
110
+
111
+ res = sipCallMethod(NULL, a0, "N", new QByteArray(arg), sipType_QByteArray, NULL);
112
+
113
+ Py_DECREF(a0);
114
+
115
+ if (!res)
116
+ pyqt6_qtwebenginecore_err_print();
117
+ else
118
+ Py_DECREF(res);
119
+
120
+ SIP_UNBLOCK_THREADS
121
+ });
122
+
123
+ Py_END_ALLOW_THREADS
124
+ %End
125
+ };
126
+
127
+ %End
128
+ %If (QtWebEngine_6_8_0 -)
129
+ bool operator!=(const QWebEngineFrame &lhs, const QWebEngineFrame &rhs);
130
+ %End
131
+ %If (QtWebEngine_6_8_0 -)
132
+ bool operator==(const QWebEngineFrame &lhs, const QWebEngineFrame &rhs);
133
+ %End
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -50,7 +50,10 @@ public:
50
50
  };
51
51
 
52
52
  private:
53
- %If (QtWebEngine_6_6_0 -)
53
+ %If (QtWebEngine_6_9_0 -)
54
+ QWebEngineLoadingInfo(const QUrl &url, QWebEngineLoadingInfo::LoadStatus status, bool isErrorPage = false, const QString &errorString = QString(), int errorCode = 0, QWebEngineLoadingInfo::ErrorDomain errorDomain = QWebEngineLoadingInfo::NoErrorDomain, const QMultiMap<QByteArray, QByteArray> &responseHeaders = {}, bool isDownload = false);
55
+ %End
56
+ %If (QtWebEngine_6_6_0 - QtWebEngine_6_9_0)
54
57
  QWebEngineLoadingInfo(const QUrl &url, QWebEngineLoadingInfo::LoadStatus status, bool isErrorPage = false, const QString &errorString = QString(), int errorCode = 0, QWebEngineLoadingInfo::ErrorDomain errorDomain = QWebEngineLoadingInfo::NoErrorDomain, const QMultiMap<QByteArray, QByteArray> &responseHeaders = {});
55
58
  %End
56
59
  %If (- QtWebEngine_6_6_0)
@@ -69,4 +72,7 @@ public:
69
72
  %If (QtWebEngine_6_6_0 -)
70
73
  QMultiMap<QByteArray, QByteArray> responseHeaders() const;
71
74
  %End
75
+ %If (QtWebEngine_6_9_0 -)
76
+ bool isDownload() const;
77
+ %End
72
78
  };
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -20,7 +20,7 @@
20
20
  // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
21
 
22
22
 
23
- class QWebEngineNavigationRequest : public QObject
23
+ class QWebEngineNavigationRequest : public QObject /NoDefaultCtors/
24
24
  {
25
25
  %TypeHeaderCode
26
26
  #include <qwebenginenavigationrequest.h>
@@ -44,10 +44,10 @@ public:
44
44
  QWebEngineNavigationRequest::NavigationType navigationType() const;
45
45
  void accept();
46
46
  void reject();
47
+ %If (QtWebEngine_6_8_0 -)
48
+ bool hasFormData() const;
49
+ %End
47
50
 
48
51
  signals:
49
52
  void actionChanged();
50
-
51
- private:
52
- QWebEngineNavigationRequest(const QUrl &url, QWebEngineNavigationRequest::NavigationType navigationType, bool mainFrame, QObject *parent = 0);
53
53
  };
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -116,6 +116,12 @@ public:
116
116
  MouseLock,
117
117
  DesktopVideoCapture,
118
118
  DesktopAudioVideoCapture,
119
+ %If (QtWebEngine_6_8_0 -)
120
+ ClipboardReadWrite,
121
+ %End
122
+ %If (QtWebEngine_6_8_0 -)
123
+ LocalFontsAccess,
124
+ %End
119
125
  };
120
126
 
121
127
  enum FileSelectionMode
@@ -366,7 +372,7 @@ public:
366
372
  Py_END_ALLOW_THREADS
367
373
  %End
368
374
 
369
- void runJavaScript(const QString &scriptSource, quint32 worldId = 0, SIP_PYCALLABLE resultCallback /AllowNone,TypeHint="Callable[[QString], None]"/ = 0);
375
+ void runJavaScript(const QString &scriptSource, quint32 worldId = 0, SIP_PYCALLABLE resultCallback /AllowNone,TypeHint="Callable[[Any], None]"/ = 0);
370
376
  %MethodCode
371
377
  // Make sure the callable doesn't get garbage collected until it is invoked.
372
378
  Py_XINCREF(a2);
@@ -475,4 +481,23 @@ signals:
475
481
  %If (QtWebEngine_6_7_0 -)
476
482
  void webAuthUxRequested(QWebEngineWebAuthUxRequest *request);
477
483
  %End
484
+
485
+ public:
486
+ %If (QtWebEngine_6_8_0 -)
487
+ QWebEngineFrame mainFrame();
488
+ %End
489
+ %If (QtWebEngine_6_8_0 -)
490
+ std::optional<QWebEngineFrame> findFrameByName(QAnyStringView name);
491
+ %End
492
+
493
+ signals:
494
+ %If (QtWebEngine_6_8_0 -)
495
+ void permissionRequested(QWebEnginePermission permissionRequest);
496
+ %End
497
+ %If (QtWebEngine_6_8_0 -)
498
+ void zoomFactorChanged(qreal factor);
499
+ %End
500
+ %If (QtWebEngine_6_8_0 -)
501
+ void printRequestedByFrame(QWebEngineFrame frame);
502
+ %End
478
503
  };
@@ -0,0 +1,76 @@
1
+ // qwebenginepermission.sip generated by MetaSIP
2
+ //
3
+ // This file is part of the QtWebEngineCore Python extension module.
4
+ //
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
+ //
7
+ // This file is part of PyQt6-WebEngine.
8
+ //
9
+ // This file may be used under the terms of the GNU General Public License
10
+ // version 3.0 as published by the Free Software Foundation and appearing in
11
+ // the file LICENSE included in the packaging of this file. Please review the
12
+ // following information to ensure the GNU General Public License version 3.0
13
+ // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14
+ //
15
+ // If you do not wish to use this file under the terms of the GPL version 3.0
16
+ // then you may purchase a commercial license. For more information contact
17
+ // info@riverbankcomputing.com.
18
+ //
19
+ // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
+ // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
+
22
+
23
+ %If (QtWebEngine_6_8_0 -)
24
+
25
+ class QWebEnginePermission
26
+ {
27
+ %TypeHeaderCode
28
+ #include <qwebenginepermission.h>
29
+ %End
30
+
31
+ public:
32
+ QWebEnginePermission();
33
+ QWebEnginePermission(const QWebEnginePermission &other);
34
+ ~QWebEnginePermission();
35
+ void swap(QWebEnginePermission &other);
36
+
37
+ enum class PermissionType
38
+ {
39
+ Unsupported,
40
+ MediaAudioCapture,
41
+ MediaVideoCapture,
42
+ MediaAudioVideoCapture,
43
+ DesktopVideoCapture,
44
+ DesktopAudioVideoCapture,
45
+ MouseLock,
46
+ Notifications,
47
+ Geolocation,
48
+ ClipboardReadWrite,
49
+ LocalFontsAccess,
50
+ };
51
+
52
+ enum class State
53
+ {
54
+ Invalid,
55
+ Ask,
56
+ Granted,
57
+ Denied,
58
+ };
59
+
60
+ QUrl origin() const;
61
+ QWebEnginePermission::PermissionType permissionType() const;
62
+ QWebEnginePermission::State state() const;
63
+ bool isValid() const;
64
+ void grant() const;
65
+ void deny() const;
66
+ void reset() const;
67
+ static bool isPersistent(QWebEnginePermission::PermissionType permissionType);
68
+ };
69
+
70
+ %End
71
+ %If (QtWebEngine_6_8_0 -)
72
+ bool operator==(const QWebEnginePermission &lhs, const QWebEnginePermission &rhs);
73
+ %End
74
+ %If (QtWebEngine_6_8_0 -)
75
+ bool operator!=(const QWebEnginePermission &lhs, const QWebEnginePermission &rhs);
76
+ %End
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -38,19 +38,24 @@ class QWebEngineProfile : public QObject
38
38
  sipTypeDef **type;
39
39
  int yes, no;
40
40
  } graph[] = {
41
- {sipName_QWebEngineContextMenuRequest, &sipType_QWebEngineContextMenuRequest, -1, 1},
42
- {sipName_QWebEngineCookieStore, &sipType_QWebEngineCookieStore, -1, 2},
43
- {sipName_QWebEngineDownloadRequest, &sipType_QWebEngineDownloadRequest, -1, 3},
44
- {sipName_QWebEngineHistory, &sipType_QWebEngineHistory, -1, 4},
45
- {sipName_QWebEngineHistoryModel, &sipType_QWebEngineHistoryModel, -1, 5},
46
- {sipName_QWebEngineNavigationRequest, &sipType_QWebEngineNavigationRequest, -1, 6},
47
- {sipName_QWebEngineNewWindowRequest, &sipType_QWebEngineNewWindowRequest, -1, 7},
48
- {sipName_QWebEngineNotification, &sipType_QWebEngineNotification, -1, 8},
49
- {sipName_QWebEnginePage, &sipType_QWebEnginePage, -1, 9},
50
- {sipName_QWebEngineProfile, &sipType_QWebEngineProfile, -1, 10},
51
- {sipName_QWebEngineUrlRequestInterceptor, &sipType_QWebEngineUrlRequestInterceptor, -1, 11},
52
- {sipName_QWebEngineUrlRequestJob, &sipType_QWebEngineUrlRequestJob, -1, 12},
53
- {sipName_QWebEngineUrlSchemeHandler, &sipType_QWebEngineUrlSchemeHandler, -1, 13},
41
+ #if QT_VERSION >= 0x060800
42
+ {sipName_QWebEngineClientHints, &sipType_QWebEngineClientHints, -1, 1},
43
+ #else
44
+ {0, 0, -1, 1},
45
+ #endif
46
+ {sipName_QWebEngineContextMenuRequest, &sipType_QWebEngineContextMenuRequest, -1, 2},
47
+ {sipName_QWebEngineCookieStore, &sipType_QWebEngineCookieStore, -1, 3},
48
+ {sipName_QWebEngineDownloadRequest, &sipType_QWebEngineDownloadRequest, -1, 4},
49
+ {sipName_QWebEngineHistory, &sipType_QWebEngineHistory, -1, 5},
50
+ {sipName_QWebEngineHistoryModel, &sipType_QWebEngineHistoryModel, -1, 6},
51
+ {sipName_QWebEngineNavigationRequest, &sipType_QWebEngineNavigationRequest, -1, 7},
52
+ {sipName_QWebEngineNewWindowRequest, &sipType_QWebEngineNewWindowRequest, -1, 8},
53
+ {sipName_QWebEngineNotification, &sipType_QWebEngineNotification, -1, 9},
54
+ {sipName_QWebEnginePage, &sipType_QWebEnginePage, -1, 10},
55
+ {sipName_QWebEngineProfile, &sipType_QWebEngineProfile, -1, 11},
56
+ {sipName_QWebEngineUrlRequestInterceptor, &sipType_QWebEngineUrlRequestInterceptor, -1, 12},
57
+ {sipName_QWebEngineUrlRequestJob, &sipType_QWebEngineUrlRequestJob, -1, 13},
58
+ {sipName_QWebEngineUrlSchemeHandler, &sipType_QWebEngineUrlSchemeHandler, -1, 14},
54
59
  #if QT_VERSION >= 0x060700
55
60
  {sipName_QWebEngineWebAuthUxRequest, &sipType_QWebEngineWebAuthUxRequest, -1, -1},
56
61
  #else
@@ -243,4 +248,35 @@ public:
243
248
  %If (QtWebEngine_6_5_0 -)
244
249
  void setPushServiceEnabled(bool enabled);
245
250
  %End
251
+ %If (QtWebEngine_6_8_0 -)
252
+
253
+ enum class PersistentPermissionsPolicy
254
+ {
255
+ AskEveryTime,
256
+ StoreInMemory,
257
+ StoreOnDisk,
258
+ };
259
+
260
+ %End
261
+ %If (QtWebEngine_6_8_0 -)
262
+ QWebEngineProfile::PersistentPermissionsPolicy persistentPermissionsPolicy() const;
263
+ %End
264
+ %If (QtWebEngine_6_8_0 -)
265
+ void setPersistentPermissionsPolicy(QWebEngineProfile::PersistentPermissionsPolicy);
266
+ %End
267
+ %If (QtWebEngine_6_8_0 -)
268
+ QWebEngineClientHints *clientHints() const /Transfer/;
269
+ %End
270
+ %If (QtWebEngine_6_8_0 -)
271
+ QWebEnginePermission queryPermission(const QUrl &securityOrigin, QWebEnginePermission::PermissionType permissionType) const;
272
+ %End
273
+ %If (QtWebEngine_6_8_0 -)
274
+ QList<QWebEnginePermission> listAllPermissions() const;
275
+ %End
276
+ %If (QtWebEngine_6_8_0 -)
277
+ QList<QWebEnginePermission> listPermissionsForOrigin(const QUrl &securityOrigin) const;
278
+ %End
279
+ %If (QtWebEngine_6_8_0 -)
280
+ QList<QWebEnginePermission> listPermissionsForPermissionType(QWebEnginePermission::PermissionType permissionType) const;
281
+ %End
246
282
  };
@@ -0,0 +1,42 @@
1
+ // qwebengineprofilebuilder.sip generated by MetaSIP
2
+ //
3
+ // This file is part of the QtWebEngineCore Python extension module.
4
+ //
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
+ //
7
+ // This file is part of PyQt6-WebEngine.
8
+ //
9
+ // This file may be used under the terms of the GNU General Public License
10
+ // version 3.0 as published by the Free Software Foundation and appearing in
11
+ // the file LICENSE included in the packaging of this file. Please review the
12
+ // following information to ensure the GNU General Public License version 3.0
13
+ // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14
+ //
15
+ // If you do not wish to use this file under the terms of the GPL version 3.0
16
+ // then you may purchase a commercial license. For more information contact
17
+ // info@riverbankcomputing.com.
18
+ //
19
+ // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
+ // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
+
22
+
23
+ %If (QtWebEngine_6_9_0 -)
24
+
25
+ class QWebEngineProfileBuilder /NoDefaultCtors/
26
+ {
27
+ %TypeHeaderCode
28
+ #include <qwebengineprofilebuilder.h>
29
+ %End
30
+
31
+ public:
32
+ QWebEngineProfile *createProfile(const QString &storageName, QObject *parent /TransferThis/ = 0) const /Factory/;
33
+ static QWebEngineProfile *createOffTheRecordProfile(QObject *parent /TransferThis/ = 0) /Factory/;
34
+ QWebEngineProfileBuilder &setPersistentStoragePath(const QString &path);
35
+ QWebEngineProfileBuilder &setCachePath(const QString &path);
36
+ QWebEngineProfileBuilder &setHttpCacheType(QWebEngineProfile::HttpCacheType httpCacheType);
37
+ QWebEngineProfileBuilder &setPersistentCookiesPolicy(QWebEngineProfile::PersistentCookiesPolicy persistentCookiesPolicy);
38
+ QWebEngineProfileBuilder &setHttpCacheMaximumSize(int maxSizeInBytes);
39
+ QWebEngineProfileBuilder &setPersistentPermissionsPolicy(QWebEngineProfile::PersistentPermissionsPolicy persistentPermissionPolicy);
40
+ };
41
+
42
+ %End
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -79,6 +79,15 @@ public:
79
79
  %End
80
80
  %If (QtWebEngine_6_7_0 -)
81
81
  ForceDarkMode,
82
+ %End
83
+ %If (QtWebEngine_6_9_0 -)
84
+ PrintHeaderAndFooter,
85
+ %End
86
+ %If (QtWebEngine_6_9_0 -)
87
+ PreferCSSMarginsForPrinting,
88
+ %End
89
+ %If (QtWebEngine_6_9_0 -)
90
+ TouchEventsApiEnabled,
82
91
  %End
83
92
  };
84
93
 
@@ -109,12 +118,26 @@ public:
109
118
  void resetAttribute(QWebEngineSettings::WebAttribute attr);
110
119
  void setDefaultTextEncoding(const QString &encoding);
111
120
  QString defaultTextEncoding() const;
112
-
113
- private:
114
- explicit QWebEngineSettings(QWebEngineSettings *parentSettings = 0);
115
-
116
- public:
117
121
  QWebEngineSettings::UnknownUrlSchemePolicy unknownUrlSchemePolicy() const;
118
122
  void setUnknownUrlSchemePolicy(QWebEngineSettings::UnknownUrlSchemePolicy policy);
119
123
  void resetUnknownUrlSchemePolicy();
124
+ %If (QtWebEngine_6_8_0 -)
125
+
126
+ enum class ImageAnimationPolicy
127
+ {
128
+ Allow,
129
+ AnimateOnce,
130
+ Disallow,
131
+ };
132
+
133
+ %End
134
+ %If (QtWebEngine_6_8_0 -)
135
+ void setImageAnimationPolicy(QWebEngineSettings::ImageAnimationPolicy policy);
136
+ %End
137
+ %If (QtWebEngine_6_8_0 -)
138
+ QWebEngineSettings::ImageAnimationPolicy imageAnimationPolicy() const;
139
+ %End
140
+ %If (QtWebEngine_6_8_0 -)
141
+ void resetImageAnimationPolicy();
142
+ %End
120
143
  };
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -52,6 +52,9 @@ public:
52
52
  ResourceTypeNavigationPreloadSubFrame,
53
53
  %If (QtWebEngine_6_4_0 -)
54
54
  ResourceTypeWebSocket,
55
+ %End
56
+ %If (QtWebEngine_6_8_0 -)
57
+ ResourceTypeJson,
55
58
  %End
56
59
  };
57
60
 
@@ -81,6 +84,9 @@ public:
81
84
  %If (QtWebEngine_6_7_0 -)
82
85
  QIODevice *requestBody() const;
83
86
  %End
87
+ %If (QtWebEngine_6_9_0 -)
88
+ bool isDownload() const;
89
+ %End
84
90
 
85
91
  private:
86
92
  QWebEngineUrlRequestInfo();
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineCore Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineQuick Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -26,7 +26,7 @@
26
26
  %Import QtWebEngineCore/QtWebEngineCoremod.sip
27
27
 
28
28
  %Copying
29
- Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
29
+ Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
30
30
 
31
31
  This file is part of PyQt6-WebEngine.
32
32
 
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineQuick Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -56,6 +56,9 @@ class QQuickWebEngineProfile : public QObject
56
56
 
57
57
  public:
58
58
  QQuickWebEngineProfile(QObject *parent /TransferThis/ = 0);
59
+ %If (QtWebEngine_6_9_0 -)
60
+ QQuickWebEngineProfile(const QString &storageName, QObject *parent /TransferThis/ = 0);
61
+ %End
59
62
  virtual ~QQuickWebEngineProfile();
60
63
 
61
64
  enum HttpCacheType
@@ -147,4 +150,42 @@ signals:
147
150
  %If (QtWebEngine_6_7_0 -)
148
151
  void clearHttpCacheCompleted();
149
152
  %End
153
+
154
+ public:
155
+ %If (QtWebEngine_6_8_0 -)
156
+
157
+ enum class PersistentPermissionsPolicy
158
+ {
159
+ AskEveryTime,
160
+ StoreInMemory,
161
+ StoreOnDisk,
162
+ };
163
+
164
+ %End
165
+ %If (QtWebEngine_6_8_0 -)
166
+ QQuickWebEngineProfile::PersistentPermissionsPolicy persistentPermissionsPolicy() const;
167
+ %End
168
+ %If (QtWebEngine_6_8_0 -)
169
+ void setPersistentPermissionsPolicy(QQuickWebEngineProfile::PersistentPermissionsPolicy);
170
+ %End
171
+ %If (QtWebEngine_6_8_0 -)
172
+ QWebEngineClientHints *clientHints() const /Transfer/;
173
+ %End
174
+ %If (QtWebEngine_6_8_0 -)
175
+ QWebEnginePermission queryPermission(const QUrl &securityOrigin, QWebEnginePermission::PermissionType permissionType) const;
176
+ %End
177
+ %If (QtWebEngine_6_8_0 -)
178
+ QList<QWebEnginePermission> listAllPermissions() const;
179
+ %End
180
+ %If (QtWebEngine_6_8_0 -)
181
+ QList<QWebEnginePermission> listPermissionsForOrigin(const QUrl &securityOrigin) const;
182
+ %End
183
+ %If (QtWebEngine_6_8_0 -)
184
+ QList<QWebEnginePermission> listPermissionsForPermissionType(QWebEnginePermission::PermissionType permissionType) const;
185
+ %End
186
+
187
+ signals:
188
+ %If (QtWebEngine_6_8_0 -)
189
+ void persistentPermissionsPolicyChanged();
190
+ %End
150
191
  };
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineQuick Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineWidgets Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -29,7 +29,7 @@
29
29
  %Import QtWidgets/QtWidgetsmod.sip
30
30
 
31
31
  %Copying
32
- Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
32
+ Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
33
33
 
34
34
  This file is part of PyQt6-WebEngine.
35
35
 
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // This file is part of the QtWebEngineWidgets Python extension module.
4
4
  //
5
- // Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
5
+ // Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
6
6
  //
7
7
  // This file is part of PyQt6-WebEngine.
8
8
  //
@@ -189,6 +189,9 @@ signals:
189
189
  void pdfPrintingFinished(const QString &filePath, bool success);
190
190
  void printRequested();
191
191
  void printFinished(bool success);
192
+ %If (QtWebEngine_6_8_0 -)
193
+ void printRequestedByFrame(QWebEngineFrame frame);
194
+ %End
192
195
  };
193
196
 
194
197
  %ModuleHeaderCode
File without changes