PDA

View Full Version : A QFrame into a Window control



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

aamer4yu
2nd June 2010, 06:47
Not sure if you can use Qt within MFC so directly.
Like for using activeX components, Qt has QAxWidget..does MFC has similar kind of thing ?