ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

7 June 2024
2024-06-07×
7 June 2024
A
What does this line of the docs mean? signal4 = Signal((float,), (QDate,)) # optional types Should the tuples contain a single type each? Can the types be in lists instead of tuples? And unless the syntax is still valid for PySide6, shouldn't there be a discouraging line in the docs near the code?
C
The tuples are a way of associating the "python types" and "qt types", and IIRC they can have more than one value if needed. It cannot be a list instead of a tuple. what would you like to discourage?
A
Later in the docs, I see the following: In Qt 6, signals have distinct names for different types. I understand this like that there can't be optional types in Qt 6 anymore.
C
Looking at tests and examples, I do see: sig5 = Signal((str,), (int,)) foo_int_qobject = Signal(int, QObject) so different approaches are still valid. I guess the whole page needs a brush-up :/
C
So now I am a bit stuck: I know since Qt 5 (and Python 3) everything is Unicode, but how are Unicode code points represented in .ui Files from QT Designer a.k.a. pyside6-designer? I load such file with QUiLoader.load(): <widget class="QLabel" name="label_9"> <property name="text"> <string>🏡 whatever</string> It also does work with HTML entities like &pound; but others like &#x1F3E1; only show the box.
Calendar: June 2024
MoTuWeThFrSaSu13234456676891105117121136141516171819120212223242526127282930
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