[Interest] Mac OS X Qt 5 QCoreApplication application crashes if linking with webenginewidgets
DAS Loop
dasloop at gmail.com
Tue Apr 12 10:18:33 CEST 2016
Hi,
While porting an app to Qt (Mac OS X SDK 10.11, QT 5.6) I have found a
problem. A console app (no GUI) crashes because it loads a dylib that links
with Qt WebEngine. The app never instantiates any object that uses Qt
WebEngine. The crash happen in QtWebEngineCore::initialize because it tries
to create a QOpenGLContext.
There is any way to disable this behaviour other that changing my app?
This sample reproduces the problem:
console.pro
TEMPLATE = app
TARGET = console
INCLUDEPATH += .
SOURCES += main.cpp
CONFIG += console
CONFIG -= app_bundle
QT += webenginewidgets
main.cpp
#include <QCoreApplication>
#include <QWebEngineView>
int main( int argc, char * argv[] )
{
QCoreApplication app( argc, argv );
return 0;
}
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160412/8f43b48f/attachment.html>
More information about the Interest
mailing list