PDA

View Full Version : How to drag and drop the QLabel text to the QTextEdit?



Gokulnathvc
10th October 2012, 10:33
How to drag and drop the QLabel text to the QTextEdit? I would like to drag and drop the label with some text, that particular text should appear in the QTextEdit of the another QDialog? Is that possible?

wysota
10th October 2012, 11:29
Yes. Implement drag facilities for your label with proper mime-type and QTextEdit should accept the drop by default (provided drops are enabled in the widget).

Gokulnathvc
10th October 2012, 11:33
yeah.. setTextInteractionFlags did the trick.. It is working fine....:D