Instantiating QWebPage prevents my application from starting
-
@Marco4ever7
ignore those.
just check the first level of the dependency tree. -
You should use the debugger to get more information about the crash.
-
@SGaist I did , and it is not even starting , it crashes just after starting(see the error log in the topic description).
@raven-worx I am sorry but I never used the dependency walker , where should I be looking ?
-
Looks like the Qt version you are using is different than the one that was used to build QtWebKit.
By the way, why not use QtWebEngine ?
-
@Marco4ever7
yes you are on the right track. Your Qt5Core.dll doesnt match for some reason.
See https://www.dependencywalker.com/help/html/hidr_module_list_view.htmSeems the error is the exported symbol
QtPrivate::argToQString(QStringView)
. QStringView was added in Qt 5.10.
I have no idea against what version QtWebkit was built against. Maybe Qt 5.6 (?) since this was the last version it was included.Normally this should be ensured under the terms of binary backward compatibility. But i assume QtWebKit is using some private classes for which binary compatibility isn't ensured.
In the worst case you will have to build the QtWebKit module yourself against your Qt version.
By the way, why not use QtWebEngine ?
i think because of mingw
-
@raven-worx said in Instantiating QWebPage prevents my application from starting:
@Marco4ever7
yes you are on the right track. Your Qt5Core.dll doesnt match for some reason.
See https://www.dependencywalker.com/help/html/hidr_module_list_view.htmSeems the error is the exported symbol
QtPrivate::argToQString(QStringView)
. QStringView was added in Qt 5.10.
I have no idea against what version QtWebkit was built against. Maybe Qt 5.6 (?) since this was the last version it was included.By the way, why not use QtWebEngine ?
i think because of mingw
@SGaist @raven-worx yes , precisely . I know it would have saved me a lot of trouble if I could use QWebEngine , but unfortunately I can't.
So I think I will attempt to build the QtWebKit on my machine and get back to you .
Thanks a lot for the help guys \m/P.S : If there is a reference on how to build the QtWebkit , that would be so helpful.
-
This post is deleted!
-
@SGaist @raven-worx I tried to build QtWebkit but unfortunately it failed because of some remote repo has been taken offline .
I think I will explore another option .
Thank you guys or the help. -
@Marco4ever7 You can download mingw binaries for Qt 5.14.1 from https://github.com/qtwebkit/qtwebkit/releases/tag/qtwebkit-5.212.0-alpha4
-
@Konstantin-Tokarev Thank you for the link . But I already solved my problem with QTextCursor and QTextDocument sice I only needed to print to a PDF ,also I am working on Qt 5.13.0 so I don't want to mess with my environment as I am still kind of a noob xD and I hate environment -related issues . But thanks a lot though .