[Qt-interest] Setting "native" drag and drop pixmap?
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Wed Feb 9 11:11:55 CET 2011
On 2011-02-08 ITS-CMT-SL-SFR-FIN-DEV Knoll Oliver, ITS-CMT-SL-SFR-FIN-DEV wrote:
> Hi,
>
> I noticed that on Mac when I drag and drop a widget within Qt Designer I do get the
> "Mac drag icon" (this green bubble with the + inside).
>
> However in my own application I only get this generic "black and white arrow" (can't
> remember the exact icon right now) when dragging e.g. a filepath or pixmap onto
> my main window.
Sorry for the confusion: I was talking about drag events generated by *external* applications such as Firefox (dragging an image from Firefox onto my application) or the Finder. So I think it is off course the external application which is responsible for setting the proper drag "accept" icon, once my application decides to accept the drag, right?
Anyway, I just figured out that when dragging a photo from iPhoto onto my application I *do* get this "green bubble with + and little arrow" icon!
I wonder however what icon I will get when drag'n'dropping within my own application, will test this later on.
Thanks,
Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list