ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

10 October 2023
2023-10-10×
10 October 2023
B
id 5248479152Is QDialog used a lot? Can I use Qwidget instead?
Your choice between the two should likely mostly be based on what you're doing at that particular moment. If you're looking for some sort of really common / standard form of input (a yes/no/continue/cancel type question for example, or a popup notification of some sort) then QDialog may be less work, but if you're going for custom input, a complex form, or anything outside QDialog's typical capabilities, then customizing a QWidget may be less work than forcing a more complex QDialog.
A
Hello I was wondering if there was any plan to use Python 3.12+ subinterpreters in PySide?
A
My question was more if there was any plan to use it internally for multi-threading (if it even makes sense)?
I'd like to bring your attention to PYSIDE-1955. Once again, I see that the tr function is missing from the QObject class stubs as described in PySide6/QtCore.pyi. However, the function is mentioned in sources/pyside6/PySide6/QtCore/typesystem_core_common.xml and sources/pyside6/PySide6/glue/qtcore.cpp. How can one be present and missing at the same time? My best guess is that at line 1810, instead of classmethod="yes", there should be static="yes".
A
Yeah, that's the root of the issue indeed! How do I set the default value of the disambiguation argument?
C
PSA : the 6.6.0 Release will take a bit longer. We had an issue with some final details, but we will let you know once it's out :)
C
There are no xml files used to generate the .pyi files. The stubs are created with a script that explores the types at runtime (importing the modules) . If you mean about the pyi entries on the typesystem files, shiboken is in charge of handling that information, when generating the module.
Indeed, the typesystem files. The sources/pyside6/PySide6/QtCore/typesystem_core_common.xml is one of them. I see a lot of tags and their attributes, but I have no idea which ones are allowed and actually used. By now, I've found typesystemparser.cpp, and the code is clear enough to actually use it as a guide. However, an official (and text) one would be great.
A
Look, I've authored half a dozen issues about the Python Interface files. Each one gets resolved within a month or two. Now, I got time to propose corrections myself. The only thing that limits me is that I have no clue how to work with the typesystem files.
And here are the scripts in charge of the generation
C
The main issue with the stubs is that compared to memory leaks, catching up with the Qt api, or other bits of broken code, it usually end up having a low priority. That's usually the main reason for the delay. After 6.6.0 I'd like to keep an eye on those open issues, so we can try to cover all the other mistakes. Thanks for the reports, I hope you keep filing them.
C
So if you want to modify the typesystem -> need to build the project -> then use the generate_pyi But me mindful, that the solution is not add "pyi-type" all over the place to get the correct types, the ideas is to improve the logic of the script so the proper types can be infer.
Fair point. There are several places with char and char*. I can't be sure that a new piece of logic works until I manually prepare all the corrections. So, it's just quicker to modify the arguments in every single case and only then to make a rule up. As some of the errors wait for half a year, I'd stick to the simplest solution for now. I suppose there is little to no harm to commit a better solution later. I'll try to do my best until the weekend.
A
By the way, it's not clear from the Gerrit guidelines whether I should make a separate branch or commit into an existing one. If possible, please clarify it in the docs.
Calendar: October 2023
MoTuWeThFrSaSu1239456578398102611171221314115167171218151916202122231624125226127428293031
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