Comments (13)
guess we can implement a mocked QApplication.UnicodeUTF8 property
and provide an override for PySide2/Qt5 on translate, so they can accept an argument more.
Thoughts ?
from qt.py.
I've been opening a pull request : #99
from qt.py.
Sorry to ask, but is this a problem you need solved? Or are you trying to cover all incompatibilities?
from qt.py.
I'm porting a quite complex stack of code over Qt.py and it does use compiled ui ( designer-qt4 ) through pyside-uic , which by default sneak in the translate function.
Without this fix, any interface build with PySide/PyQt won't simply be loading, and error, and possibly make the app segfault.
from qt.py.
Ah, excellent.
An example in the form of a test would be lovely to really drive this feature home.
from qt.py.
thought the same, but I need #93 first .
So we can test both.
from qt.py.
#93 implemented.
from qt.py.
tests are now available
from qt.py.
For completeness, the missing piece of information is an example that illustrates the problem.
from qt.py.
Implemented in 0.5.0.
@hdd, let me know how this works for you!
from qt.py.
Hi Marcus,
Does this solve also the UnicodeUTF8 Remapping issue on QApplication ?
(as it can't simply be ignored on old PyQt4/PySide code)
from qt.py.
Hey @hdd,
It solves it by compiling your .ui files with PySide2. That compiler won't produce references to this member.
from qt.py.
For completeness, the solution is to compile with PySide2-compatible compiler, and then either replace references to PySide2
with Qt
, or automatically do so with --compile
. See the release for details.
from qt.py.
Related Issues (20)
- Table Drop Event and loadUi with PySide2 HOT 3
- Add PySide6 support HOT 20
- https://github.com/spyder-ide/qtpy/issues/348 HOT 6
- QtCompat.isValid() Not Available for All Qt Objects HOT 8
- How to add menubar in QT?
- Drop PyQt because it may be illegal to import a GPL lib from a lib under MIT HOT 1
- TypeError: Expected 4 or 5 arguments, got 3. HOT 1
- Is it possible to add support for QIdentityProxyModel HOT 1
- Change of types-PySide2 breaks Python 2 compatibility HOT 10
- TypeError: 'PySide2.QtWidgets.QWidget' called with wrong argument types
- partially initialized module 'Qt' has no attribute 'QtGui' (most likely due to a circular import)
- Convert does not convert files built with pyside2-uic 5.15.2 HOT 1
- signal.connect() TypeError in pyqt5 when signal has an argument HOT 9
- stubs missing signal.connect, disconnect and emit HOT 6
- Cannot install v1.3.8 from sdist HOT 6
- The imp module is removed with Python 3.12
- Running tests fails
- Code completion inserts references to PySide2 HOT 1
- headerToModule() is destructive when CustomWidget path is a Python . path HOT 5
- QStringListModel not available in PySide2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qt.py.