3rdparty/OpenCV-2.3.0/modules/highgui/src/window_QT.cpp
foreach (QWidget *widget, QApplication::topLevelWidgets())
	{

		if (widget->isWindow() && !widget->parentWidget ())//is a window without parent
		{
			temp = (CvWinModel*) widget;
			if (temp->type == type_CvWindow)
			{
			w = (CvWindow*) temp;
			if (name.compare(w->param_name)==0)
			{
				window = w;
				break;
			}
			}
		}
	}
//This is not a very clean way to do the stuff. Indeed, QAction automatically generate toolTil (QLabel)
//that can be grabbed here and crash the code at 'w->param_name==name'.
This is not a very clean way to do the stuff. Indeed, QAction automatically generate toolTil (QLabel)
that can be grabbed here and crash the code at 'w->param_name==name'.
This is not a very clean way to do the stuff . Indeed QAction automatically generate toolTil ( QLabel ) that can be grabbed here and crash the code at ' w - > param_name == name ' .
foreach (QWidget *widget, QApplication::topLevelWidgets())
	{
		if (widget->isWindow() && !widget->parentWidget ())
		{
			temp = (CvWinModel*) widget;
			if (temp->type == type_CvWindow)
			{
			w = (CvWindow*) temp;
			if (name.compare(w->param_name)==0)
			{
				window = w;
				break;
			}
			}
		}
	}
foreach ( QWidget * widget , QApplication :: topLevelWidgets ( ) ) { if ( widget -> isWindow ( ) && ! widget -> parentWidget ( ) ) { temp = ( CvWinModel * ) widget ; if ( temp -> type == type_CvWindow ) { w = ( CvWindow * ) temp ; if ( name . compare ( w -> param_name ) == 0 ) { window = w ; break ; } } } }
This is not a very clean way to do the stuff.
This is not a very clean way to do the stuff .
//is a window without parent