ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

3 January 2022
2022-01-03×
3 January 2022
V
Ссылка
click to show
Hi everyone! Is there a way to create a binding for a method with QLatin1String arguments? I found that in PySide all functions with QLatin1String arguments are rejected (typesystem_core_common.xml) and in qt codebase QLatin1String is used only as alternative for QString and rejecting doesn't cut functionality. In my case only QLatin1String is supported. Example of such method: https://github.com/quotient-im/libQuotient/blob/dev/lib/events/event.h#L188 , Type is QLatin1String Without additional type definitions shiboken just ignores all members with QLatin1String, because this type is unknown. Is the only one possibility to write type definition for QLatin1String manually? Qt/PySide/Shiboken 6.2.2.1
C
Vladyslav HnatiukHi everyone! Is there a way to create a binding for a method with QLatin1String arguments? I found that in PySide all functions with QLatin1String arguments are rejected (typesystem_core_common.xml) and in qt codebase QLatin1String is used only as alternative for QString and rejecting doesn't cut fu
hey, you would need to implement the type handling by yourself if you want to use it. The reason we don't include it, is because we use the API with QString (or QStringView). Alternatively, you could create a new with "add-function" that internally calls your signature with QLatin1String
C
are you using any render hints in your painter? like antialiasing?
M
Can someone format the text of the PySide Bot so it is more clear, who is the autor? is ist possible to answere?
C
One can pick on the formatter, it's a matterbridge bot instance, will change the formatting and check in a few
K
looks like our IRC translation now doesn't have username - just seeing: (irc) FromGitter: <goodboy:matrix.org>
C
because there is another bridge between matrix and IRC 🎉 bridging the wooooorld
Replymessage unavailable
Use a QLabel, and position it with absolute x, y positioning, then animate the x,y position (QWidget's pos property) using QPropertyAnimation. If you do that, you don't have to do your own rendering, and you get to choose the amount of time that the animation occurs, and specify an easing curve for it.
K
I don't think I've ever animated the pos of an item in this way, but I think QPropertyAnimation knows how to deal with QPoint
K
Replymessage unavailable
You can manually drive the Qt event loop, but it generally is discouraged, since Qt then doesn't control when the event loop runs, we can't guarantee that things will operate correctly. However, it is possible. To do so, just periodically (as often as you can), call QCoreApplication.processEvents() instead of calling qApp.exec()
Calendar: January 2022
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