Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "QtSvgWidgets.QSvgWidget" #411

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@
"QSvgGenerator",
"QSvgRenderer"
],
"QtSvgWidgets": [
],
"QtTest": [
"QTest"
],
Expand Down Expand Up @@ -963,6 +965,7 @@ def createWidget(self, class_name, parent=None, name=""):
"QtCompat.qInstallMessageHandler", _qInstallMessageHandler
],
"QtWidgets.QStyleOptionViewItem": "QtCompat.QStyleOptionViewItemV4",
"QtSvgWidgets.QSvgWidget": "QtSvgWidgets.QSvgWidget",
},
"PySide2": {
"QtWidgets.QUndoCommand": "QtWidgets.QUndoCommand",
Expand Down Expand Up @@ -1000,6 +1003,7 @@ def createWidget(self, class_name, parent=None, name=""):
"QtCompat.qInstallMessageHandler", _qInstallMessageHandler
],
"QtWidgets.QStyleOptionViewItem": "QtCompat.QStyleOptionViewItemV4",
"QtSvg.QSvgWidget": "QtSvgWidgets.QSvgWidget",
},
"PyQt5": {
"QtWidgets.QUndoCommand": "QtWidgets.QUndoCommand",
Expand Down Expand Up @@ -1033,6 +1037,7 @@ def createWidget(self, class_name, parent=None, name=""):
],
"QtWidgets.QShortcut": "QtWidgets.QShortcut",
"QtWidgets.QStyleOptionViewItem": "QtCompat.QStyleOptionViewItemV4",
"QtSvg.QSvgWidget": "QtSvgWidgets.QSvgWidget",
},
"PySide": {
"QtGui.QUndoCommand": "QtWidgets.QUndoCommand",
Expand Down Expand Up @@ -1074,6 +1079,7 @@ def createWidget(self, class_name, parent=None, name=""):
"QtCompat.qInstallMessageHandler", _qInstallMessageHandler
],
"QtGui.QStyleOptionViewItemV4": "QtCompat.QStyleOptionViewItemV4",
"QtSvg.QSvgWidget": "QtSvgWidgets.QSvgWidget",
},
"PyQt4": {
"QtGui.QUndoCommand": "QtWidgets.QUndoCommand",
Expand Down Expand Up @@ -1116,6 +1122,7 @@ def createWidget(self, class_name, parent=None, name=""):
"QtCompat.qInstallMessageHandler", _qInstallMessageHandler
],
"QtGui.QStyleOptionViewItemV4": "QtCompat.QStyleOptionViewItemV4",
"QtSvg.QSvgWidget": "QtSvgWidgets.QSvgWidget",
}
}

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Qt-py/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)

Qt.py enables you to write software that runs on any of the 4 supported bindings - PySide2, PyQt5, PySide and PyQt4.
Qt.py enables you to write software that runs on any of the supported bindings - PySide, PySide2, PySide6, PyQt4 and PyQt5.

<br>

Expand Down Expand Up @@ -608,6 +608,7 @@ python -m twine upload .\dist\*
| `QtCore.Qt.MidButton` | `QtCompat.QtCore.Qt.MidButton`
| `QLabel.setPixmap(str)` | `QLabel.setPixmap(QPixmap())` | Can't take a string anymore (tested in Maya 2025.0)
| `QModelIndex.child` | `QModel.index` | This one is apparently from Qt 4 and should not have been in Qt.py to begin with
| `QtSvg.QSvgWidget` | `QtSvgWidgets.QSvgWidget` | Moved to QtSvgWidgets in Qt 6
| | Submit your known issues here! |

##### Removed Members
Expand Down