[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Question regarding QLayouts
From:       Christian Nitschkowski <segfault-kde-devel () gmx ! net>
Date:       2003-04-15 9:25:28
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Is there a way to get the cells a widget is in when you only know about the 
widget and the layout it is in?

I mean - if you have something like this:

MyWidget::MyWidget(int fr, int fc, int tr, int tc) : QWidet(0, 0){
 QGridLayout* layout = new QGridLayout(this);
 QWidget* widget = new QWidget(this);
 layout->addMultiCellWidget(widget, fr, fc, tr, tc);
}

Is it possible to get the values of
fr
fc
tr
tc

back without storing them when using the values?
ATM I only get the values of fr and fc using
QGridLayout::findWidget(QWidget*, int* int*);

I need to do it this way because I only get a pointer to the created MyWidget 
with no change of changing the code of MyWidget in any way (MyWidget is 
created by an external lib).

Regards
Christian Nitschkowski

- -- 
Visit my homepage at http://segfaultskde.berlios.de for different KDE-Apps.

If builders built buildings the way programmers wrote programs, then the first
woodpecker that came along would destroy civilization.

Murphy's Law
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+m9AIb/QSzFL/HQkRAuhvAKCEeUGvhho71broLAA6CLu4C6yvOgCeKVB4
tIjGY6ymdlZbhgw0yC0ZLWo=
=CdbJ
-----END 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