kinju
2nd June 2010, 03:55
Hello,
I have an MFC control (I have not the choice of the start of my project), and I would like put a QFrame into my MFC control in order to fill the rest with Qt.
I tried this :
QFrame* fr = new QFrame();
::SetParent(hWndParent, fr->winId());
But QFrame launch an exception because no QApplication have been instancied.
Also, I saw a QWinWidget class which seems to be what I need :
The QWinWidget class is a Qt widget that can be child of a native Win32 widget
But I have any qwinwidget.h file in my include directory...
Can you help me please ?
Thanks,
Aurélien
I have an MFC control (I have not the choice of the start of my project), and I would like put a QFrame into my MFC control in order to fill the rest with Qt.
I tried this :
QFrame* fr = new QFrame();
::SetParent(hWndParent, fr->winId());
But QFrame launch an exception because no QApplication have been instancied.
Also, I saw a QWinWidget class which seems to be what I need :
The QWinWidget class is a Qt widget that can be child of a native Win32 widget
But I have any qwinwidget.h file in my include directory...
Can you help me please ?
Thanks,
Aurélien