Не могу понять делую преобразование
MdiChildJournal* child = qobject_cast<MdiChildJournal*>(winList.at(i)->widget())
выдается ошибка:
..\Desktop\Qt\4.7.3\mingw\include\QtGui/qmainwindow.h: In member function 'void QMainWindow::qt_check_for_QOBJECT_macro(const T&) const [with T = MdiChildJournal]':
..\..\Desktop\Qt\4.7.3\mingw\include/QtCore/qobject.h:364: instantiated from 'T qobject_cast(QObject*) [with T = MdiChildJournal*]'
..\new\mainwindow.cpp:102: instantiated from here
..\..\Desktop\Qt\4.7.3\mingw\include\QtGui/qmainwindow.h:65: error: void value not ignored as it ought to be
mingw32-make[1]: Leaving directory `D:/QtSDK/Project/new-build-desktop'
mingw32-make[1]: *** [debug/mainwindow.o] Error 1
mingw32-make: *** [debug] Error 2
Процесс «D:\QtSDK\mingw\bin\mingw32-make.exe» завершился с кодом 2.
НЕ могу понять из-за чего