On Tuesday, 1 May 2018 08:31:58 PDT Michael Jackson wrote: > Possibly strange question that I have googled a bit for but I may not be > using the proper terminology to get the answers that I am looking for. > > I have a QWidget (say a button) in QWindow "A" and I want to perform a drag > action from that QWidget onto another QWidget in another QWindow "B" (So > far easy stuff). What I would like to also do while I am dragging is > continuously draw a nice stylized line from the current location of the > mouse back to the QWidget where the drag started. Is this even possible? I > can't seem to figure out if the line would ONLY be drawn inside the > QWindows and NOT outside? And if that is the case I would assume that I > then need to rely on "native" code for each platform to perform the > drawing? If anybody has a working example of this kind of interaction that > would also be much appreciated.
By definition, you can only draw inside a window. So if you need to draw, put a window there. Maybe you can make a window that has no title bar, no borders and is transparent. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest