ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

23 August 2023
2023-08-23×
23 August 2023
C
@EnesKucukk please use external services to share code 👍 otherwise then we have walls of code here and on IRC each line will be a message, so it's quite spammy. Maybe dpaste for example :)
K
Enes KucukSorry. https://dpaste.org/Sxfg5 With this code, I create 2 joysticks in a mainwindow and they move smoothly with mouse events, but I want to be able to control both of them on the touch screen at the same time, how can I do this? (Touch screen has multi-touch feature)
You want to look at the QTouchEvent docs. Specifically you want to enable touch events for the widgets you want to interpret the touch events with WA_AcceptTouchEvents. The blurb after talking about the acceptTouchEvents attribute only applies to QGraphicsView derived items, which you're likely not using. On the C++ side of the docs, that is a link pointing to the QGraphicsItem::setAcceptTouchEvents method. No such link exists in the python docs due to doc autogeneration limits. Might be worthy of reporting a documentation bug for. It's mostly clear, but some of those links are important for understanding the full picture. Huh. I don't find a touch example, at least combing through the names of the examples. Sounds like should add one. https://doc.qt.io/qtforpython-6/PySide6/QtGui/QTouchEvent.html
Calendar: August 2023
MoTuWeThFrSaSu18233345678910111251310142151631731821920213222382425126272829430931
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