Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.2
-
None
Description
I'm using PyQt 5.11.3, which supports Qt 5.11.2. The problem is similar to the one reported in QTBUG-47063
import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * def cell_entered(row, col): print(f'Cell ({row}, {col}) entered!') def item_entered(item): print(f'Item "{item}" entered!') app = QApplication(sys.argv) window = QMainWindow() table = QTableWidget() table.setRowCount(100) table.setColumnCount(5) # table.setMouseTracking(True) # When mouse tracking is turned off, signal cellEntered and itemEntered still emit on mouse wheel (when the cursor is in cells) for i in range(100): for j in range(5): table.setItem(i, j, QTableWidgetItem(f'{i}, {j}')) table.cellEntered.connect(cell_entered) table.itemEntered.connect(item_entered) window.setCentralWidget(table) window.show() sys.exit(app.exec_())