[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Relational Geometry Question
From: Sirtaj Singh Kang <ssk () physics ! unimelb ! edu ! au>
Date: 1997-07-30 15:29:18
[Download RAW message or body]
On Tue, 29 Jul 1997, Ken Hollis wrote:
> I can say parent->x() and parent->y() but how do I do
> parent->thisobject->x() and parent->thisobject->y()? Is that even valid?
> Does anyone even know what I'm babbling about? :)
Umm... thisobject->x() and thisobject->y() should do it, no?
All coordinates for widgets are stored in relation to the parent, so
moving a child widget to (0,0) should move it to (0,0) withing the parent
(not the desktop). Top-level widgets are not even a special case, since
their coordinates are stored relative to the desktop widget.
-Taj.
Sirtaj S. Kang taj@kde.org ssk@physics.unimelb.edu.au
School of Physics Univ of Melbourne http://www.ph.unimelb.edu.au/~ssk/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic