Qt-py

Latest version: v1.1.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 5

0.6.5

This release fixes an edgecase whereby (1) using Qt.py in conjunction with PyQt and (2) attempting to import `Qt.QtCore` directly causes remappings - such as `pyqtSignal -> Signal` - to vanish.

See 158 for details.

0.6.4

Fixed `QtCompat.translate`.

The argument signature is native to PySide2 and mirrors [the Qt documentation](https://doc.qt.io/qt-5/qcoreapplication.htmltranslate) as well.

python
Example
import Qt

result = Qt.QtCompat.translate("CustomDialog", context
"Status", sourceText
None, disambiguation
-1) n

assert result == u'Status', result

0.6.3

Qt.py + LICENSE = <3

With this release, you may safely copy/paste or otherwise use the `Qt.py` file standalone, without the `LICENSE` file, and still fully comply with the (MIT) license.

Win-win!

0.6.2

_No end-user changes_; pure refactoring to simplify understanding and future development/contributions of the project.

0.6.1

Minor refactoring.
- [Updated `--convert` to `QtCompat`](https://github.com/mottosso/Qt.py/commit/532c23ae559d8618e423fd2fb9223ee03f5e20fb).

0.6.0

Move added functionality to `QtCompat` module.

python
Before
import Qt
Qt.load_ui("my.ui")
Qt.__binding__ == "PyQt5"

After
from Qt import QtCompat
QtCompat.load_ui("my.ui")
QtCompat.__binding__ == "PyQt5"


This module will contain anything that isn't remapped, but added to Qt.py. The reduces the risk of nameclashes, more explicitly points out what is unique to Qt.py while at the same time makes your code more readable via the use of the similar, but unique, module.

python
button = QtWidgets.QPushButton("Button")
QtCompat.load_ui(...)


**Backwards compatibility is maintained**

Previous members are preserved, but deprecated. You are advised to transition when you are able.

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.