Giter VIP home page Giter VIP logo

Comments (13)

hdd avatar hdd commented on May 30, 2024

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.

hdd avatar hdd commented on May 30, 2024

I've been opening a pull request : #99

from qt.py.

mottosso avatar mottosso commented on May 30, 2024

Sorry to ask, but is this a problem you need solved? Or are you trying to cover all incompatibilities?

from qt.py.

hdd avatar hdd commented on May 30, 2024

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.

mottosso avatar mottosso commented on May 30, 2024

Ah, excellent.

An example in the form of a test would be lovely to really drive this feature home.

from qt.py.

hdd avatar hdd commented on May 30, 2024

thought the same, but I need #93 first .
So we can test both.

from qt.py.

mottosso avatar mottosso commented on May 30, 2024

#93 implemented.

from qt.py.

hdd avatar hdd commented on May 30, 2024

tests are now available

from qt.py.

mottosso avatar mottosso commented on May 30, 2024

For completeness, the missing piece of information is an example that illustrates the problem.

from qt.py.

mottosso avatar mottosso commented on May 30, 2024

Implemented in 0.5.0.

@hdd, let me know how this works for you!

from qt.py.

hdd avatar hdd commented on May 30, 2024

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.

mottosso avatar mottosso commented on May 30, 2024

Hey @hdd,

It solves it by compiling your .ui files with PySide2. That compiler won't produce references to this member.

from qt.py.

mottosso avatar mottosso commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.