ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

snapshot for August 2023
‹ August 2023 ›×
21 August 2023
T
Is using from __feature__ import true_property incompatible with loading Ui types via PySide6.QtUiTools.loadUiType? When combining both, I always get a traceback ending with self.ui.setupUi(self) File "<stdin>", line 24, in setupUi TypeError: 'str' object is not callable It seems that the type object is interpreted as having true_property enabled, while the generator does not create appropriate code for that.
I
Not exactly the same, but i feel the root cause is probably the same
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
25 August 2023
F
You can't access private API in general - what's your goal?
29 August 2023
pa @pa you don't even need to make a custom build of pyside, just make your own shiboken wrapped python c++ module. C++ code can access the private headers, provide your own code to do the injecting.
I think KDE also has a guide on it.
30 August 2023
П
hello guys, I'm doing something like a kanban board and I have a problem with scrolling in qt creator, it doesn't work. help please. Project structure: QMainWindow Qwidget QHBoxLayout QFrame QVBoxLayout QScrollArea Qwidget QScrollArea Qwidget QScrollArea Qwidget QScrollArea Qwidget
T
Scrolling in which direction? Horizontally across the columns or vertically within a column?
T
Ссылка
click to show
Are the kanban entries stored within a Qt Model, like QTableModel? Then take a look at https://doc.qt.io/qt-6/qcolumnview.html, maybe that is applicable for you and can simplify the view a lot. You just have to provide a Delegate to render individual entries. (There are some examples for this in the Qt docs.)
П
that is, I need to add a QColumnview and already place a QSrollArea on it?
Павелvertically within a column
Hmm. I’m not that proficient in those manual layouts. Have you set the internal widget via setWidget()? Also "doesn't work" with no source code is quite vague. Do the internal widgets show up? Try setting the verticalScrollBarPolicy of the QScrollAreas to Qt.ScrollBarPolicy.ScrollBarAlwaysVisible. That may reveal the source of the "doesn't work" by reasoning on the shown behavior.
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