note:record new ques.

This commit is contained in:
2025-09-26 15:43:16 +08:00
parent 995ed044e1
commit b1f31fc4d0
5 changed files with 97 additions and 93 deletions

View File

@@ -26,7 +26,12 @@ void CpTableWidget::dropEvent(QDropEvent* event)
QByteArray encoded = event->mimeData()->data("application/x-qabstractitemmodeldatalist");
QDataStream stream(&encoded, QIODevice::ReadOnly);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QPoint pos = event->position().toPoint();
#else
QPoint pos = event->pos();
#endif
int startRow = rowAt(pos.y());
int startCol = columnAt(pos.x());
if (startCol != 1 && startCol != 2) {