Re: [Interest] qtwebbroser questions
On 11/4/22 22:52, Alexander Carôt wrote: Thus, I decided to continue using the minibrowser code which already is Qt6 ready and worked out fine for me so far. However, here I have the problem that it does not store cookies. I did some research and found e.g. https://stackoverflow.com/questions/19069680/can-you-use-qwebview-cookies-sessions-with-qnetworkaccessmanager which explains how to set cookies for QWebView but the problem with the example code is that QWebView is implemented via QML so the question is how to enable cookies this way. Do you just need to set the persistent cookie policy in QWebEngineProfile? amish ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] qtwebbroser questions
On 11/4/22 22:52, Alexander Carôt wrote: Thus, I decided to continue using the minibrowser code which already is Qt6 ready and worked out fine for me so far. However, here I have the problem that it does not store cookies. I did some research and found e.g. https://stackoverflow.com/questions/19069680/can-you-use-qwebview-cookies-sessions-with-qnetworkaccessmanager which explains how to set cookies for QWebView but the problem with the example code is that QWebView is implemented via QML so the question is how to enable cookies this way. Do you just need to set the persistent cookie policy in QWebEngineProfile? amish ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] qtwebbroser questions
>> I believe qutebrowser has a qt6 branch, but yeah none of them are done >> porting >> yet. Thus, I decided to continue using the minibrowser code which already is Qt6 ready and worked out fine for me so far. However, here I have the problem that it does not store cookies. I did some research and found e.g. https://stackoverflow.com/questions/19069680/can-you-use-qwebview-cookies-sessions-with-qnetworkaccessmanager which explains how to set cookies for QWebView but the problem with the example code is that QWebView is implemented via QML so the question is how to enable cookies this way. If you have an idea please let me know – I am still pretty novice with Qt web browser related topics, thanks Alex -- http://www.carot.de Email : alexan...@carot.de Tel.: +49 (0)177 5719797 > Gesendet: Montag, 11. April 2022 um 12:04 Uhr > Von: "Allan Sandfeld Jensen" > An: "Alexander Carôt" > Cc: "qt qt" > Betreff: Re: Aw: Re: [Interest] qtwebbroser questions > > On Montag, 11. April 2022 11:48:09 CEST Alexander Carôt wrote: > > Hej Allan, > > > > thanks for the reply ! > > > > >> If you want a browser based on QtWebEngine I can recommend Falkon or > > >> Qutebrowser > > > > Theoretically this is the best choice, however, I need to be on Qt6 and they > > all still seem to be Qt5 based, right ? > > > I believe qutebrowser has a qt6 branch, but yeah none of them are done > porting > yet. > > Best regards > Allan > > > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] qtwebbroser questions
On Montag, 11. April 2022 11:48:09 CEST Alexander Carôt wrote: > Hej Allan, > > thanks for the reply ! > > >> If you want a browser based on QtWebEngine I can recommend Falkon or > >> Qutebrowser > > Theoretically this is the best choice, however, I need to be on Qt6 and they > all still seem to be Qt5 based, right ? > I believe qutebrowser has a qt6 branch, but yeah none of them are done porting yet. Best regards Allan ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] qtwebbroser questions
Hej Allan, thanks for the reply ! >> If you want a browser based on QtWebEngine I can recommend Falkon or >> Qutebrowser Theoretically this is the best choice, however, I need to be on Qt6 and they all still seem to be Qt5 based, right ? Best Alex -- http://www.carot.de Email : alexan...@carot.de Tel.: +49 (0)177 5719797 > Gesendet: Montag, 11. April 2022 um 10:13 Uhr > Von: "Allan Sandfeld Jensen" > An: "Alexander Carôt" > Cc: "Interest" > Betreff: Re: [Interest] qtwebbroser questions > > On Sonntag, 10. April 2022 21:56:54 CEST you wrote: > > Hi all, > > > > while playing with qtqwebbrowser > > > > https://code.qt.io/cgit/qt-apps/qtwebbrowser.git > > > > the two questions arise: > > > > 1.) How can I set an initial URL when opening the browser ? > > 2.) How can I disable the virtual keyboard when using desktop platforms ? > > > > Thanks as usual, > > best > > > Not sure. The app was written as a demo for touch devices, and hasn't been > kept up to date since. > > If you want a browser based on QtWebEngine I can recommend Falkon or > Qutebrowser, or if you want to play with something more simple the > simplebrowser and quicknanobrowser examples in the qtwebengine repo. > > Best regards > Allan > > > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] qtwebbroser questions
Regarding 1.) I realized that the app's initlalURL argument must not contain "-" (in contradiction to the other app args) so just the plain URL, however, the site is still not loaded. If anyone can confirm please let me know. -- http://www.carot.de Email : alexan...@carot.de Tel.: +49 (0)177 5719797 > Gesendet: Sonntag, 10. April 2022 um 21:56 Uhr > Von: "Alexander Carôt" > An: "qt qt" > Betreff: [Interest] qtwebbroser questions > > Hi all, > > while playing with qtqwebbrowser > > https://code.qt.io/cgit/qt-apps/qtwebbrowser.git > > the two questions arise: > > 1.) How can I set an initial URL when opening the browser ? > 2.) How can I disable the virtual keyboard when using desktop platforms ? > > Thanks as usual, > best > > Alex > > > -- > http://www.carot.de > Email : alexan...@carot.de > Tel.: +49 (0)177 5719797 > > ___ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest > ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
[Interest] qtwebbroser questions
Hi all, while playing with qtqwebbrowser https://code.qt.io/cgit/qt-apps/qtwebbrowser.git the two questions arise: 1.) How can I set an initial URL when opening the browser ? 2.) How can I disable the virtual keyboard when using desktop platforms ? Thanks as usual, best Alex -- http://www.carot.de Email : alexan...@carot.de Tel.: +49 (0)177 5719797 ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest