Versions: Qt 5.5, Cef 1547
Basically, I have QWidget with following browser initialization code:
- Code: Select all
CefwindowInfo info;
QWindow* win = new QWindow();
this->layout()->addWidget(QWidget::createWindowContainer(win));
info.SetAsChild((CefWindowHandle)win->winId());
CefBrowserHost::CreateBrowser(info, ...);
This code causes Segmentation fault exception with following callstack
- Code: Select all
0> g_type_check_instance_cast
1> CefBrowserHostImpl::PlatformCreateWindow()
2> ??
If I comment out the line with info.SetAsChild(..) , everything works as expected save that Cef is launched in separate window, while I need it to be integrated in my Qt application.
Any ideas what am I doing wrong?