Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Using firefox as default browser of QWebkit



  • Hello everybody
    I am developing a QWebkit project on Raspberry pi4.
    I want to show some Arabic pages on my QWebview.
    Most of things are showen correctly but some words are overlapping.what is my problem?
    I think my QWebview browser is chromium and not working well and i want to change my browser to firefox. maybe my problem will be solved.can i do that and how?
    thank you



  • @Naser-0
    QWebEngine... is the Chromium engine. I'm not sure which browsers QWebKit works best with. You can't "change my browser to firefox", they don't use a browser, they have their own in-built engines.

    Rethink: maybe I'm wrong about that. See e.g. https://forum.qt.io/topic/103938/qwebview-browser-not-supported. You might need something with request.setRawHeader("User-Agent", ...), thought the user there did not get what he wanted to work.

    I know nothing about RPis. But is there a reason you wish to continue using QtWebKit instead of the newer QtWebEngine? Maybe the latter would address your issue? If you do persist with QtWebKit, I think it's important you are at the very latest version, which I believe comes separately from your Qt version.



  • @JonB
    Thank you for your answer.
    unfortunately i have not QWebengine on my RPi.i just have QWebkit
    Can i compile QWebengine seperately? Or i should install it with Qt installation?



  • @Naser-0
    I'm afraid you'll have to await answer from someone else for installing/compiling/obtaining for RPi, or do a Google search.

    What version of Qt are you using? QWebKit was deprecated quite a while ago. I know @Konstantin-Tokarev still maintains a latest non-Qt-supplied version if you want to stick with it. Personally, and no offence to him, I moved over to QWebEngine for simplicity.



  • @JonB
    Im using Qt 5.11.3 on my Pi;
    I did not know that QWebkit is deprecated.
    I want to work with QWebEngine but as i saied , i have not it on my pi and dont know how to compile it seperately.
    But I will search on google about that. hope to find a solution.
    I will send a message to @Konstantin-Tokarev too.
    Thank you



  • @Naser-0

    I did not know that QWebkit is deprecated.

    QWebKit is no longer even in the (current) Qt docs! Once you have your QWebEngine, see https://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html.



  • @JonB
    Yeah I got it.
    I am trying to compile QWebEngine.
    Thank you for your guidance.



  • Hello @Naser-0,

    Did you managed to compile it? Im struggling with qwebkit on my Rpi as well. Regards


Log in to reply