Re: [Interest] Possible to draw between QWindows

2018-05-01 Thread Murphy, Sean
> 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.

That was going to be my suggestion as well, and I was working on something
last week that needed a transparent overlay to draw across widgets too, so
I had this discussion bookmarked that might be helpful?

https://stackoverflow.com/questions/19199863/draw-rectangular-overlay-on-qwidget-at-click

Sean


This message has been scanned for malware by Forcepoint. www.forcepoint.com
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Possible to draw between QWindows

2018-05-01 Thread Thiago Macieira
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


[Interest] Possible to draw between QWindows

2018-05-01 Thread Michael Jackson
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.

Thanks
--
Michael Jackson | Owner, President
  BlueQuartz Software
[e] mike.jack...@bluequartz.net
[w] www.bluequartz.net


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest