Making firefox addon using Qt - qt

I wanted to ask whether it is possible to make an firefox addon using Qt.If possible how can I do that ?

See the Qt Browser Plugin example from Nokia/Digia/etc. Was part of Qt Solutions (now discontinued, but is under the BSD license and since it used Qt 4.x when it was supported, should still be usable, just a little dusty. Expect a bit of work to compile it at first, though).
It supports creating a NPAPI plugin. You can find the READEME at http://qt.gitorious.org/qt-solutions/qt-solutions/blobs/master/qtbrowserplugin/README.TXT - and all the other files are in the same directory.
The documentation is also available: http://doc.qt.digia.com/solutions/4/qtbrowserplugin/

Related

Media Player in Qt

I am posting this to know whether a media player can be developed with Qt5 without using gstreamer plugins as backend.Is there any other backend engine available in embedded linux platform to play media files other than gstreamer. I am using intel X86 32 bit architecture.
Thanks in advance.
Just checked the Qt5 plugin sources (/qt5/qtmultimedia/src/plugins) and it seems like gstreamer is the only option for linux. Phonon has been dropped in Qt5.
If you want to use phonon you'll have to stick with Qt 4.8.
Qt5 on Linux only supports gstreamer by using the plugins in http://qt.gitorious.org/qt/qtmultimedia/trees/stable/src/plugins. Of course you can write your own plugin using ffmpeg or whatever you want. This is pretty simple, but entirely depends in the performance you need.
Phonon was available in Qt 4, but AFAIK Phonon is gstreamer based again. There is also a project to create a vlc-based Phonon, but I don't really know how it works (https://projects.kde.org/projects/kdesupport/phonon).
However, you don't specify your specific target, but if you want to achieve acceptable performance for graphics and/or video on embedded devices, you probably really need hardware acceleration. And Phonon will hardly help you with this. Also consider that Qt 4 is old: it misses years of development.
I'm also writing a Qt5 backend using OpenMAX and ffmpeg: http://thebugfreeblog.blogspot.it/2013/04/hardware-accelerated-qtmultimedia.html. It might be an example if you need to write your own.
Also consider that the errors you reported (why reporting in an answert?) seem to suggest you built gstreamer wrong.

Check Qt4 code for backward compatibility

I am wondering if there is a tool to check a Qt4 project (C++) for backward compatibility with a specific older Qt version. For example, my project uses version 4.8.4 and I would like to run it on 4.5.3.
I am thinking of a compatibility check on the basis of the source code. I would prefer a solution which does not rely on QtCreator (but please name it anyway if any ;)
Thank you for any hint.

Is it still possible to use WebKit with Qt when building the latter with the -static option?

Static linking of WebKit has been disabled as of Qt 4.7. However, I am wondering if it is somehow possible to still use WebKit with my Qt project by building a shared library and linking to that - so that I am only distributing my executable and one shared library (the WebKit one).
Does anyone know if this is possible and if so how I might go about doing it? I am targeting the Windows platform if it helps.

KDE themes used to style Qt4 application

can kde themes be used to style multi platform (linux/windows) Qt4 applications ?
Yes, if you build/copy all dependencies.
This is not possible. Qt uses every platform's native API to render the widgets, hence platform specific themes cannot be applied on other platforms.
Since themes maybe third-party, it becomes more difficult.
If you're talking about Qt Styles(QStyle) that are used in traditional C++ KDE themes(non Plasma or ini themes) then yes you can do that to some extent, though you may have to adjust/fix some(or more) things since their mostly written with the KDE theme purpose in mind. One good example would be to fix or ensure the cross-platform compatibility(the theme might use additional platform specific libraries). Then there's also the licensing issue that you definitely have to take into consideration, since most of those themes are under GNU GPL.
If you're talking about Qt Stylesheets, you are out of luck, since currently KDE doesn't support any way of theming using Qt Stylesheets, thus you have no KDE Stylesheet themes to use.

Simple working example using plugin writen in Qt and make it work with NPAPI

Can anybody show me simple working example using Qt(export DLL plugin file) and make it work with NPAPI. I want simple example to test it in Google Chrome. Any links, codes ...
Thank you
There's a nice framework called Firebreath for writing cross-platform browser plugins in C++. It comes with plenty of documentation and example projects, so it's easy to get started. As a plus, in addition to NPAPI hosts you pretty much get free support for ActiveX browsers (Internet Explorer) too.
http://www.firebreath.org
Check out the QtBrowserPlugin solution, http://doc.qt.nokia.com/solutions/4/qtbrowserplugin/developingplugins.html
There you should find information about writing your own NPAPI plugins.
Update:
I did not realize there was no useful link to the source, it can be found in gitorious at
http://qt.gitorious.org/qt-solutions/ to browse online http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtbrowserplugin

Resources