> Now, snippets: convert QWidget to QLineEdit, if failed, then it’s a QComboBox. > But I think this is not good. don't use C-cast. use qobject_cast<WidgetType*>() instead. -- Regards, Ivan Kharin