maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] QML Browser - Web browser written using Qt Components Hildon (https://talk.maemo.org/showthread.php?t=93508)

marxian 2014-07-27 23:20

[Announce] QML Browser - Web browser written using Qt Components Hildon
 
QML Browser has been around for a while, but now that it is more functional, I decided to give it its own thread.

QML Browser is a web browser written in QML, using the Qt Components Hildon APIs. Specifically, the UI utilises the org.hildon.components module, whilst the browser code uses components from org.hildon.webkit. The UI is modelled on MicroB (may as well copy the best :)).

Version 0.6.0 of QML Browser is available from extras-devel. The source code is published at https://github.com/marxoft/qml-browser. The source code for Qt Components Hildon is published at https://github.com/marxoft/qt-components-hildon.

Features currently implemented:
  • Multiple browser windows.
  • Bookmarks.
  • Recent/complete browsing history, with access via swipe from right.
  • Text selection using a mouse pointer (swipe from left to show the pointer).
  • Zoom using swirl gesture or double-tap (needs fine-tuning).
  • Find on page.
  • Standard keyboard shortcuts for new window, reload, show/add bookmarks, find on page, copy/cut/paste.
  • Configurable search engines. Search engines can be added in the UI, or by manually editing /home/user/.config/QMLBrowser/searchengines.conf.
  • Custom URL handlers. Handlers can be added in the UI, or by manually editing /home/user/.config/QMLBrowser/urlhandlers.conf.
  • Download management.
  • View source.

Some features not yet implemented:
  • Activate links using the mouse pointer.

Some screenshots:

http://s2.postimg.org/kfo29ryk5/qml_browser_1.png http://s2.postimg.org/rwx9ozo39/qml_browser_2.png http://s2.postimg.org/e5ssmrz5h/qml_browser_3.png http://s2.postimg.org/6r82852np/qml_browser_4.png

http://s2.postimg.org/8muujarhx/qml_browser_5.png http://s2.postimg.org/gd1moftth/qml_browser_6.png http://s2.postimg.org/orcnys5h1/qml_browser_7.png http://s2.postimg.org/51yz02myd/qml_browser_8.png

Adding search engines manually.

The config file for search engines uses the following format:

Code:

[Display Name]
icon=searchengineicon.jpg // optional
url=http://searchengine.com/search?q=%QUERY%

Adding URL handlers manually.

The config file for URL handlers uses the following format:

Code:

[Display Name]
regExp=http(s|)://somewebsite.com/.+ // Used for matching links
command=my_application --do_stuff %URL% // Executed when a matching link is clicked

The command can be anything you like (invoke application, custom script, dbus-send etc).

xes 2014-07-27 23:44

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Really impressive! Nice job!

(using qml-browser)

nokiabot 2014-07-28 03:13

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Can it run firefox web apps ?? There are some awsome webapps there :)

mayhem 2014-07-28 06:55

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
i am currently using cssu stable and tried to install qml browser but i got this error

Selecting previously deselected package qml-browser.
(Reading database ... 29938 files and directories currently installed.)
Unpacking qml-browser (from qml-browser_0.4.0_armel.deb) ...
Setting up qml-browser (0.4.0) ...
-sh: can't create /home/user/.config/QMLBrowser/searchengines.conf: Permission denied
dpkg: error processing qml-browser (--install):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
qml-browser

xes 2014-07-28 12:30

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Do you think it is possible to customize the main bar buttons or add missing actions to a submenu that substitutes the back arrow? In that way the left finger would manage reload, new tab..ecc..

Out of curiosity:
I have always wondered if instead double click to zoom the full web page just to click on the proper page number of a thread... it would be possible to manage a "one click and half action" to zoom just a zone of a web page using some kind of lense effect with a crossair to pick the right link..
Probably the development effort would be much more than the advantages, but i have always asked myself why no one is using such kind of trick into mobile devices.

Copernicus 2014-07-28 13:36

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by xes (Post 1434092)
I have always wondered if instead double click to zoom the full web page just to click on the proper page number of a thread... it would be possible to manage a "one click and half action" to zoom just a zone of a web page using some kind of lense effect with a crossair to pick the right link..

I've noticed that Google Chrome on Android does exactly this whenever you tap on a region of a page with multiple links close together. (They don't have a crosshair, but otherwise it works the way you describe.) I dunno if other browsers have this feature...

jessi3k3 2014-07-28 14:00

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
This is great, I'll give it a spin. I hadn't used it since 0.1 since it was very bare-bones but quick, lets see if it's better now.

marxian 2014-07-28 15:08

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by nokiabot (Post 1434065)
Can it run firefox web apps ?? There are some awsome webapps there :)

I don't know much about those, but I would expect they would require a Mozilla browser to run them as-is.

marxian 2014-07-28 15:12

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by mayhem (Post 1434074)
i am currently using cssu stable and tried to install qml browser but i got this error

Selecting previously deselected package qml-browser.
(Reading database ... 29938 files and directories currently installed.)
Unpacking qml-browser (from qml-browser_0.4.0_armel.deb) ...
Setting up qml-browser (0.4.0) ...
-sh: can't create /home/user/.config/QMLBrowser/searchengines.conf: Permission denied
dpkg: error processing qml-browser (--install):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
qml-browser

The postinst script attempts to create the file as user, so it sounds like the permissions of your .config directory have been changed.

marxian 2014-07-28 15:26

Re: [Announce] QML Browser - Web browser written using Qt Components Hildon
 
Quote:

Originally Posted by xes (Post 1434092)
Do you think it is possible to customize the main bar buttons or add missing actions to a submenu that substitutes the back arrow? In that way the left finger would manage reload, new tab..ecc..

Well, there are keyboard shortcuts for those actions. If you are going to raise a submenu from the toolbar, then that would be no more efficient that raising the main application menu and choosing the action from there.

Quote:

Originally Posted by xes (Post 1434092)
Out of curiosity:
I have always wondered if instead double click to zoom the full web page just to click on the proper page number of a thread... it would be possible to manage a "one click and half action" to zoom just a zone of a web page using some kind of lense effect with a crossair to pick the right link..
Probably the development effort would be much more than the advantages, but i have always asked myself why no one is using such kind of trick into mobile devices.

Like Opera Mobile? To be honest, I have found that to be one it's more irritating features. No matter how precisely I tap on a link/button, Opera Mobile nearly always forces me to tap it again after zooming in. It's the new 'clippy'.

However, it is possible to do it, though it would require some more features of QtWebKit to be exposed to QML (which I intend to do anyway). It can be done by intercepting the tap and performing a hit test to check what content exists at the position where the tap occured.


All times are GMT. The time now is 07:01.

vBulletin® Version 3.8.8