I'm having some trouble with drag & dropping some text from a QPushButton. The drag and drop works correctly, where you click and hold down the left mouse button to drag the QPushButton text to an external document editor. The problem occurs after the drop, when you return the cursor to the application (the drag & drop source) any button or other widget the cursor moves over gets highlighted, but does not dehighlight once the mouse moves on to the next widget.
I have done the drag & drop two different ways to try to solve it, one by subclassing the QPushButton, and the other by attaching a slot to the ButtonPressed signal from a standard QPushButton. Both produce the same result.
I do know if you return to the application and click somewhere (anywhere but the button), the stuck highlighting stops. I tried faking a click programactically, but that didn't do anything.
Am I missing something simple here to fix it, or do I have to just disable the hover highlighting?

The drag code (everything else in the app is default):
Qt Code:
  1. void MagyAccent::e1Pressed()
  2. {
  3. ui->pbE1->setDown(true);
  4. QDrag *drag = new QDrag(ui->pbE1);
  5. QMimeData *mimeData = new QMimeData;
  6. mimeData->setText(ui->pbA1->text());
  7. drag->setMimeData(mimeData);
  8. drag->exec();
  9. ui->pbE1->setDown(false);
  10. }
To copy to clipboard, switch view to plain text mode 

Thanks in advance!