From kde-devel Tue Apr 15 09:25:28 2003 From: Christian Nitschkowski Date: Tue, 15 Apr 2003 09:25:28 +0000 To: kde-devel Subject: Question regarding QLayouts X-MARC-Message: https://marc.info/?l=kde-devel&m=105039898204035 -----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 <<