Unsolved what if function of setdraenabled()?
-
i have written the following code
ui->lineEdit->setText("lucky");
ui->lineEdit->setSelection(1,2);
ui->lineEdit->setDragEnabled(true);
the output of the code shows lucky in the lineEdit but what new
ui->lineEdit->setDragEnabled(true);
had done. -
Hi
setDragEnabled enables dragging from this Widget
https://doc.qt.io/qt-5/dnd.html
So if you grab some of the text you can drag to any drop target that will accept it.