Qmessagebox in drag and drop.
i'm doing drag and drop of tables from one tablewidget to other, its working fine but i need to display a question message box whenever i tries to drop tables to tablewidget.
message box should have two buttons i.e replace button and cancel button.
if i press replace previous contents should be replaced by new contents.
if i press cancel previous contents should remain as it is.
how can i achieve this ..?? can anyone assist me regrading this please.
I don't see the challenge in this, yet. Use "QMessageBox":http://qt-project.org/doc/qt-5/qformlayout.html , maybe go for one of the "static members":http://qt-project.org/doc/qt-5/qmessagebox.html#question and this could be done in very few lines of code.
You would need to open the message box after the drop action occurred, I guess.