[Qt-interest] Drag'n'Drop: need to reimplement QGraphicsView? [SOLVED]
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Fri Nov 26 10:51:45 CET 2010
On 2010-11-26 ITS-CMT-SUI-SL-SFR-FIN-DEV Knoll Oliver, ITS-CMT-SUI-SL-SFR-FIN-DEV wrote:
> ...
> Do I have to subclass QGraphicsView and re-implement the usual event methods
> such as dropEvent(), or can I somehow add an "event proxy" and implement my
> drag and drop logic in that separate proxy class?
Found the solution already while reading other posts here on Qt-interest (Re: [Qt-interest] QgraphicsScene: best way to manage events - thanks Ross Bencina ;)
http://doc.trolltech.com/4.7/qgraphicsscene.html#dropEvent
So I can subclass from QGraphicsScene instead and use the stock QGraphicsView within Qt Designer :)
Cheers,
Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list