Misc: Replace dynamic_cast with qobject_cast
This commit is contained in:
committed by
Benjamin Nauck
parent
f2cd99c50a
commit
b14d3a224b
@@ -43,7 +43,7 @@ ExpressionBindingPy::ExpressionBindingPy(Py::PythonClassInstance* self, Py::Tupl
|
||||
PythonWrapper wrap;
|
||||
wrap.loadWidgetsModule();
|
||||
|
||||
QWidget* obj = dynamic_cast<QWidget*>(wrap.toQObject(Py::Object(pyObj)));
|
||||
QWidget* obj = qobject_cast<QWidget*>(wrap.toQObject(Py::Object(pyObj)));
|
||||
expr = asBinding(obj);
|
||||
|
||||
if (!expr) {
|
||||
|
||||
Reference in New Issue
Block a user