In this chapter will be shown how to add Simple button to the toolbar and statusbar.
Create button The button in QML is represented by Falkon.BrowserAction and will be automatically added to all windows. At the moment of writing this article the button shares the same instance with all windows and thus per window modifications are impossible (would be very inconsistent|.
Falkon.BrowserAction { name: 'QML Tutorial 3' identity: 'qml-tutorial-3-id' title: i18n('Qml Tutorial 3') toolTip: i18n('My little button') icon: 'falkon' location: Falkon.
Hello, in this chapter I will show you how to add an entry to the context menu on the webpage.
In the example I will reuse code from Tutorial 3 and increment the badge counter when menu entry is selected.
Create entry in context menu Directly add actions to the menu populateWebViewMenu: function(menu, webHitTestResult) { // Create a menu entry var action = menu.addAction({ text: 'Action', icon: 'falkon' }) // Bind some function to it action.
Hello, in this chapter I will show you how to use Falkon notifications.
Create notification Falkon.Notifications.create({ heading: i18n('Hello QML'), message: i18n('First qml plugin action works :-)'), icon: 'extensions.svg' }) Arguments heading Notification header
message The body of the notification
icon Either system icon or file provided by extension.
Example The example code will add a button to main toolbar and statusbar. When user clicks on the button a notification will show up.