[Interest] Keeping track of a QDialog position

John Weeks john at wavemetrics.com
Mon Oct 19 22:27:41 CEST 2015


Are you on a Macintosh using the Cocoa-based Qt? If so, that's what you get. Cocoa simply doesn't send move events very often.

We have small tool windows and info windows that are supposed to follow graph windows around as they are dragged. More than one customer has complained that they don't follow, but only snap into position after a delay.

-John Weeks
WaveMetrics, Inc.


> On Oct 19, 2015, at 12:36 PM, Rollastre Prostrit <rollastre at gmail.com> wrote:
> 
> Hello.
> 
> I am trying to keep track of the position of a QDialog as the user 
> clicks on the title and moves it around the desktop. At most, the only 
> thing I manage is to get a move event when the user releases the mouse. 
> But I need to keep track of the position to perform some operations 
> (somewhat like docking).
> 
> After some research performed, I learned about the 
> NonClientAreaMouseButtonPress, NonClientAreaMouseButtonRelease, and 
> NonClientAreaMouseButtonMove events which I can play with and would 
> suffice for my use case. But I'm not getting such events in Linux (KDE) 
> so this solution seems to not be portable.
> 
> Can anybody suggest any way to solve this?
> 
> Thanks
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list