-
Notifications
You must be signed in to change notification settings - Fork 0
Прикључци
Преводи страницe: Plugins
Напомена: Превођење на српски је у току.
QupZilla plugins are small dynamic loaded libraries (.so on *nix / .dll on windows) which can do a lot of various jobs.
QupZilla plugins are classic Qt Lower Level-API extensions.
To create your first QupZilla plugin, you will have to download the source code of the QupZilla version you are targeting. You will find it in the Downloads section.
After that, you have to compile QupZilla in order to generate libQupZilla to link your plugin against it. Generally, qmake && make
should work for you. Of course, you need to have at least basic Qt/C++ skills to write a plugin.
##Plugins API
Every plugin needs to contain a subclass of the PluginInterface
class. This class offers some pure virtual functions that are called directly from QupZilla. The global object PluginProxy
offers some functions as well, but it mainly emits signals for plugins.
For detailed information about available functions and signals, please see АПИ прикључака page.
The TestPlugin is a suitable example to do the first steps. Every single file contains useful explanations and comments, so please take a look at it first.
Plugins are loaded from predefined directories:
- DATADIR + /plugins (/usr/share/qupzilla/plugins on Linux, exe-location/plugins on Windows)
- PROFILEDIR + /plugins (~/.qupzilla/plugins on Linux, somewhere-in-documents/.qupzilla/plugins on Windows)
- Linux only: /usr/lib/qupzilla
Available pages:
- Translating - How to translate
- Themes - How to develop themes
- Plugins - How to develop plugins
- Changelog - Full changelog
- Bug reports - Read before open issue
- FAQ - Frequently asked questions
- Authors - List of all contributors
- Contact - Get in touch with developers