Hello, in this chapter I will show you how to use Falkon clipboard. It is only possible to copy data out of the extension into the clipboard.
Use clipboard Falkon.Clipboard.copy('Something from Falkon in the clipboard') Example The example code will add a context menu which will add 2 entries. One to copy something and other to copy image URL to the clipboard.
Code The code for this example can be found at extensions/qml_tutorial_6
Hello, in this chapter I will show you how to create a custom sidebar.
Create sidebar import QtQuick.Controls 2.3 Falkon.SideBar { name: 'qml-tutorial7-sidebar' title: i18n('Tutorial 7 - QML SideBar') icon: 'falkon' checkable: false shortcut: 'Ctrl+Shift+Alt+S' Pane { /* Actual UI and some drawing logic */ } } Falkon.SideBar name Internal name of the sidebar. This is required property.
title Sidebar title visible when sidebar is enabled and also displayed in the menu when selecting sidebars.
Hello, in this chapter I will show you how to create a settings dialog.
These settings are stored as ini files in the profile/extensions/some_extension/settings.ini and thus are suitable only for small data storage like global user settings.
Use Settings At first set the settings option X-Falkon-Settings=true in the desktop file to tell Falkon the settings for the extension are available.
metadata.desktop
[Desktop Entry] Name=Tutorial8 QML Comment=Example QML extension with settings Icon= Type=Service X-Falkon-Type=Extension/Qml X-Falkon-Author=Juraj Oravec X-Falkon-Email=jurajoravec@mailo.