see below – I understood that qtbrowser in indeed an example application in 
beta state. Therefore, disabling the virtual keyboard is not supported by 
default. However, it can be achieved by introducing the visibility property in 
the respective QML file (/qml/Main.qml) and set it from the C++ end via e.g. 
object->setProperty("keyboardVisible", false);

Once the port to Qt6 is done I would provide the patches to the main project 
for others to have an up2date code base to build upon.

Best

Alex


--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Montag, 11. April 2022 um 17:32 Uhr
> Von: "Alexander Carôt" <alexander_ca...@gmx.net>
> An: "Alexander Carôt" <alexander_ca...@gmx.net>
> Cc: "qt qt" <interest@qt-project.org>
> Betreff: Aw: [Interest] qtwebbrowser questions
>
> >> 1.) How can I set an initial URL when opening the browser ?
> 
> After getting familiar with QML I realized that Browserwindow.qml contained a 
> bug:
> 
> navigation.load();
> 
> had to be changed to
> 
> navigation.load(url);
> 
> So this one is resolved – now I check how to disable the virtual keyboard for 
> desktop platforms.
> 
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
> 
> 
> > Gesendet: Montag, 11. April 2022 um 08:52 Uhr
> > Von: "Alexander Carôt" <alexander_ca...@gmx.net>
> > An: "Alexander Carôt" <alexander_ca...@gmx.net>
> > Cc: "qt qt" <interest@qt-project.org>
> > Betreff: Aw: [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" <alexander_ca...@gmx.net>
> > > An: "qt qt" <interest@qt-project.org>
> > > 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

Reply via email to