why is headless qwebpage throwing sigsegv?
so, I need to parse some javascript against one html page (kinda a
scripting for my app), but QWebPage throws SIGSEGV when I try to
initialize it. It console application. Relevat parts of my code:
QT += core sql network xml webkit
QT -= gui
QMAKE_CXXFLAGS += -std=c++11
LIBS += -lqca
TARGET = jarvisd
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
QWebPage * p = new QWebPage();
p->mainFrame()->load(QUrl(url));
It crashes on the first line. From documentation for QWebPage, from "Using
QWebPage in a Widget-less Environment" part, it seems this should be
possible. But there is not error, just sigsegv :/
Thanks for your help.
No comments:
Post a Comment