Have a look at the QWidget documentation, especially the part about the acceptDrops property. It should give you something to work with.
Have a look at the QWidget documentation, especially the part about the acceptDrops property. It should give you something to work with.
Horse sense is the thing that keeps horses from betting on people. --W.C. Fields
Ask Smart Questions
Appreciate the response. I saw all that before I posted .... it wasn't particularly informative. If you have a pointer to an actual example where a widget like QLineEdit dropped into a layout inside a MainWindow in QtCreator can be made to respond to drops without subclassing, I'd love to see it.
I don't have the possibility to test atm, but it is very likely that if you setAcceptDrops(true); then QLineEdit should accept them and display anything that is reasonably convertible to QString.
Horse sense is the thing that keeps horses from betting on people. --W.C. Fields
Ask Smart Questions
That may be but how is the application notified that a drop has happened? I don't want to poll the widget.
Look for the textChanged(), textEdited() and editingFinished() signals that QLineEdit has.
Horse sense is the thing that keeps horses from betting on people. --W.C. Fields
Ask Smart Questions
Bookmarks