Details
-
Bug
-
Resolution: Incomplete
-
P4: Low
-
None
-
5.13.0 RC 3
Description
Rewrite keyPressEvent for QTableWidget give QKeyEvent key() == 16777217 any of arrow keys pressed in case setCellWidget used.
QTableWidget::setCellWidget(QCheckBox*);
QTableWidget::keyPressEvent(QKeyEvent *ev)
{ in case Qt::Key_DOWN or Qt::Key_LEFT pressed ev->key() ... will ecuals to 16777217 not 16777237 }Создав QTableWidget и вставив Widget с помощью setCellWidget, QTableWidget::keyPressEvent override QKeyEvent::key() равно 16777217 в случае если нажаты кнопки вниз или вправо.