Advice on compiling .ui files/Improve support for .ui files
See original GitHub issueHi,
I’m the author of this project that uses PySide2.
I would like to migrate completely to qtpy
but I’m facing some issues when compiling the .ui
files.
I’ve noticed that If I compile the .ui
files with the commands provided by PySide2, then change the .py
includes to use qtpy
and then run the project with PySide6, some elements do not transfer well.
I think that the main issue is that I do not have a cross-qt compiler of the .ui
files to .py
that are fully compatible with qtpy
.
Is there some advise on how to handle this?
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Compile Qt UI file?
Try to create new Visual Studio project, and then choose "Qt Application" or similar - don't choose MFC application, etc... For this you...
Read more >Please help, I'm trying to open a .ui file and I accidentally ...
Please help, I'm trying to open a .ui file and I accidentally made notepad the default way for it to open and now...
Read more >Build a UI with Layout Editor - Android Studio
The Layout Editor enables you to quickly build layouts by dragging UI elements into a visual design editor instead of writing layout XML...
Read more >Using a Designer UI File in Your C++ Application
Qt Designer UI files represent the widget tree of the form in XML format. The forms can be processed: At compile time, which...
Read more >How to Import a PyQt5 .ui File in a Python GUI
In this tutorial, I explain how to import .ui files created using ... install so I would recommend reading the other post to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @dalthviz, yeah, I could take a look.
Btw, I don’t think this properly supports PySide2 either. It seems to me that
pyside2uic.compileUi
was only available until 5.13.2. Someone mentioned in the linked issue thatpytside2-uic
was brought back in 5.14.2.2, and I assume that’s true (I don’t know PySide that much). The latest PySide version indeed has thepytside2-uic
CLI, but it doesn’t have thecompileUi
API.So I wonder if there are multiple issues, as qtpy
uic.compileUi
behaves differently per each version:pytside2-uic
is available, perhaps only from 5.14.2.2 - to be checked)But I could take a deeper look later.
Just in case, maybe this could be interesting: https://github.com/hmaarrfk/qtpy-tools/