query.PNG

As shown in the image on the left side i have a QListWidget named "my_listwidget" populated with 3 commands and on the right side i have a QPlainTextEdit named "my_textedit".

i am able to drag from QListWidget by using this code

ui->my_listwidget->setSelectionMode(QAbstractItemView::SingleSelecti on);
ui->my_listwidget>setDragEnabled(true);
ui->my_listwidget->setDragDropMode(QAbstractItemView:ragDrop);
ui->my_listwidget->viewport()->setAcceptDrops(false);
ui->my_listwidget->setDropIndicatorShown(true);```


But i am not able to drop into my QPlainTextEdit, i guess because when i drag, its of "item type" and when im trying to drop into textbox, the QPlainTextEdit accepts only Text but not item type. How do i do this ? Thanks for going through this.