ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

snapshot for April 2024
‹ April 2024 ›×
F
Anyone has experience with using GammaRay for PySide6 applications? I can attach to a PyQt6 application just fine, but I don't even see running PySide6 applications in the list, despite all three things being built against the same Qt.
A
I think I only was able to get it working when starting the app with GammaRay (IIRC, few month ago)
I'd say it would be better to check the full log, maybe you can use dpaste or similar services to share a URL to it
It seems you are not using a python virtual environment, also by the includes I don't know if your system has /usr/include/c++/11 to be gcc version 11, or c++11 headers.
I do see the -std=c++17
but it might be that's not picking it up 🤔
which ubuntu version are you trying?
C
Maybe tomorrow morning I can check the CI configuration, I'm going AFK now 🙇
janustroelsen, it's not necessary to change the PYTHONPATH, in general python terms is not even recommended to touch it. You need to build pyside with "python setup.py build —build-tests [...]" then you create the wheels and install (with the create_wheels.py script) and can run "python testrunner.py test"
and I agree, it would be nice to decouple shiboken a bit, but the problem is that in the early days, shiboken was even a separate repo, and for convenience it was all moved into pyside-setup
We are evaluating going back to a more granular approach, and then having a different structure and relationship between shiboken and pyside, but nothing is defined yet
I
Is it possible to have the generated files from pyside6-uic have type hints?
T
For one of my projects, I've written a wrapper script that compiles UI files into importable modules and also generate type hinting stubs for UI files. By default, it creates .pyi type hinting stubs for UI files found recursively under a given source directory, and puts them in the same hierarchy under a given target directory. I use it to have auto-completion for UI files without having the compiled code in the source tree. The Python module paths are hard-coded for the project at the top of the script, so you should adapt them. Source code is here: https://chiselapp.com/user/luziferius/repository/MTGProxyPrinter/file?name=scripts/compile_ui_files.py&ci=port_pyside6 Also note that using the --purge existing flag assumes the target path can be deleted and re-created without interfering, so you may need to adapt it, if you intersperse automatically generated code with manually written code. (If the --purge-existing flag is given, it performs shutil.rmtree on the target path!)
yeah I guess I'll need to revamp how I'm compiling the ui files at some point
I use the old pyqt-distutils which stumbles into a working job somehow but I have issues
I
The code example is appreciated, might use it as reference whenever I do revamp my ui building then
Hey qt for python folks! I just updated to 6.7 and now I get an error on some super basic stuff: PySide6.QtWidgets.QBoxLayout.addWidget(QLabel) Supported signatures: PySide6.QtWidgets.QBoxLayout.addWidget(PySide6.QtWidgets.QWidget, int = 0, PySide6.QtCore.Qt.AlignmentFlag = Default(Qt.Alignment))
I have only 1 PySide installed. So currently there is only PySide6. There is no way QLabel was from PySide2 or such.
I mean I can probably finally retire PySide2 on my hobby project. But at work .. no can do. We have Qt code thats wrapped so that it runs on PySide1 or PySide2 (5.6)
A
Is anyone here using qt-material in their PySide6 projects? I’m looking for a good dark theme.
Calendar: April 2024
MoTuWeThFrSaSu112134454678992110611312131415116171891942021112223242526272829130
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog