[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Question regarding QLayouts
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2003-04-15 9:48:43
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Tuesday 15 April 2003 11:25, Christian Nitschkowski wrote:
> Is it possible to get the values of
> fr
> fc
> tr
> tc
>
> back without storing them when using the values?
Storing the values would be the best idea IMHO.
If this isn't possible you could do it this way:
You use
> QGridLayout::findWidget(QWidget*, int* int*);
to get the top left cell the widget is in.
then you check, if the widget fits within the cell using
QGridLayout::cellGeometry.
If it is to wide check the cell right of the current cell as well.
If it is to high check the cell below the current cell as well.
Cheers,
Kevin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic