ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

27 January 2024
2024-01-27×
27 January 2024
R
Good afternoon guys, how do I get the signal from a widget inside a QTableWidget using the setCellWidget method? I'm creating buttons dynamically in the table, in the Widget I'm passing QPushBotton without reference to make it dynamic, but I don't know how to get the signal for each button created, does anyone have any suggestions?
but for that I would have to instantiate the QPushBotton, and in that case it would not be dynamic
ex. tab = QTableWidget() tab.setCellWidget(r, 0, QPushBotton(text="Open")) Note: r is generated dynamically
R
ex2. btn=QPushBotton(text="Open") tab = QTableWidget() tab.setCellWidget(r, 0, btn) Note: in this scenario I can get the signal through the BRN, but it is not dynamic
R
In example 2 you could easily do this: btn.clicked.connect(function) but it would not be dynamic
Calendar: January 2024
MoTuWeThFrSaSu1323456375819110311121314153168171851920213222324325326827928129330431
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