ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

сообщение · 2022-02-17 16:12 UTC
I
hi, i'm trying to emit a signal on QGraphicScene but faced with the error of: Unresolved attribute reference 'emit' for class 'Signal' here is the following code from PySide2 import QtWidgets, QtCore, QtGui class Nodz(QtWidgets.QGraphicsView): signal_KeyPressed = QtCore.Signal(object) def __init__(self, parent, configPath=defaultConfigPath): . . . super(Nodz, self).__init__(parent) def keyPressEvent(self, event): if event.key() not in self.pressedKeys: self.pressedKeys.append(event.key()) self.signal_KeyPressed.emit(event.key()) what am I doing wrong?

All messages on 17 February 2022 · Whole feed · оригинал в Telegram

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