Skip to content

Commit 9e20d38

Browse files
committed
WIP: remove windows only QtCore.QWinEventNotifier
1 parent 6c15925 commit 9e20d38

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

CAVEATS.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,3 +435,20 @@ is directly using enums on Qt class names. If you used `self.EnumName` or other
435435
methods of accessing the enum objects the `--partial` check may find them. This is
436436
unable to automatically fix your code but shows you possible code that you will
437437
need to manually fix.
438+
439+
440+
#### QtCore.QWinEventNotifier
441+
442+
This class is only available on Windows, for now we are not exposing it in Qt.py.
443+
444+
445+
##### Workaround
446+
447+
This can be added to Qt.py using QtSiteConfig.
448+
449+
450+
```python
451+
def update_members(members):
452+
# Add the windows only `QWinEventNotifier`
453+
members["QtCore"].append("QsciAPIs")
454+
```

membership.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
SKIP_MODULES = [
1414
'PyQt5.Qt', # This module only exists in PyQt5 and is not exposed by Qt.py
1515
'PyQt5.uic.pyuic', # Problematic as it is executed on import
16+
'QtCore.QWinEventNotifier', # This class is only available on Windows.
1617
]
1718
SKIP_MEMBERS = [
1819
'qApp' # See main README.md on qApp

src/Qt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@
219219
"QVariantAnimation",
220220
"QVersionNumber",
221221
"QWaitCondition",
222-
"QWinEventNotifier",
223222
"QWriteLocker",
224223
"QXmlStreamAttribute",
225224
"QXmlStreamAttributes",

0 commit comments

Comments
 (0)