Hi again,

I tried another approach:

---------
const QToolBox* tb = (const QToolBox*) widget;
QObjectList *z = tb->queryList(0, 0, FALSE, FALSE);
QObjectListIt it(*z);
QObject *obj;
int index = 1;
while ( (obj = it.current()) != 0 )
{
++it;
QRect tab = ( (QWidget*)obj )->rect();
if ( tab.contains(r.center()) )
{
index = tb->indexOf( (QWidget*)obj );
break;
}
}
delete z;
---------

Here the problem is that Qt tells me that the children I just got don't
exist. The question is: What must I put instead of (QWidget*)obj so that
indexOf() doesn't fail?

I can see there is a problem here but I've absolutely no idea how to
solve it.

Pleeeaaase, save the noob! ;-)

--
==================
Remi Villatel
maxilys_@_tele2.fr
==================

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<