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 browsersQWebKit
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.
-
@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