How to adjust sound of QWebView based Qt Application - qt

I have created a Qt GUI application which has QWebView object to open a URL which has embedded flash content. My problem is that I would like to control the audio volume of my Qt Application(QWebView), but I am not able to find any way to do so.
However I came across classes from the Phonon module like AudioOutput and VolumeSlider but had no luck.
There is one example on the Qt website but that itself uses Media Player, for which we can control the volume.
Please advise on how can we get rid of this problem.
It looks like this is a limitation of QWebView based application as of now.

The problem is that Flash manages it's own volume and you cannot access it from Qt.

Related

Is there any form of developer's HUD built into Qt?

I have a Qt application misbehaving on macOS. The UI is garbled in various ways. As part of diagnosing this I would like to hit a hot key and bring up a HUD to interactively browse Qt's internal resources it uses to render itself, such as OpenGL textures and other surfaces to see what it has cached.
Does it have such a feature?
KDAB's GammaRay is what you are looking for.

Qt - Embed an ActiveX Control

I am developing a new Qt application and I need to embed in it a third party ActiveX Control; I spent the last days learning about Qt Quick Controls 2.0, but I fear that ActiveX Controls can only be embedded in Qt Widgets applications. Is it right?
It will also be great if you can suggest any tutorial/example about my problem, since the official one seems a little bit too hard for a newbie like me.
Thank you very much!
Can we use Qt Quick (QML) altogether with ActiveX Qt embedded widget
in one app?
Short answer: yes.
Details: we need to embed both Qt Quick and ActiveX in their own widget containers.
Build a widget-based Windows Qt application from the start. Example.
Embed QML UI into widgets with QWidget::createWindowContainer() which is one of ways to do so.
Embed or create an independent QAxWidget to hold ActiveX control in it.
The best way to deal with third-party ActiveX is to import its type-library like Qutlook Example (ActiveQt).
P.S. QML is not preventing you from doing ActiveX in Qt but they are two separate type of UI and don't share same window. They can only be both embedded in other Qt widgets. I was developing such hybrid applications with Qt/QML/ActiveX and there is no complete guide to do so. Maybe a bit too many details plus you need to deal with specifics of ActiveX interfaces which is a separate topic.

Approaches to provide a Qt Gui via Web?

Sometimes I stumble upon frameworks that used to provide a web interface for Qt applications (like e.g. https://github.com/alberthier/qtwui)
Is there today a Qt5 way (or even better PyQt5) to run a Qt application on a server while accessing the UI via web?
I know several conceptions, but from my point of view they are not ready for production.
Emscripten: http://blog.qt.io/blog/2015/09/25/qt-for-native-client-and-emscripten
QML Web: https://github.com/qmlweb/qmlweb
WebGL streaming is one way forward, as it allows to run both QML and widget-based UIs in the browser.

How to use Nokia Qt to launch another mobile application within an application based upon a MIME type?

I am using Qt Nokia for mobile development (I'm currently testing on a Nokia C7) and would like to launch an application from another an application based upon a MIME type.
For example, I might have a file, and I would like to be able to open another application from the original application without specifying the application but using the MIME type of that file. On the other application opening it would load the file and perhaps be given an additional message or payload.
If this sounds a little strange it might help to know that I have come from a J2ME background and would have used the CHAPI API.
I need to use Qt Nokia so that I can build the application for the Symbian or Maemo platform. So far I have only been able to find documentation showing you how to do it under Symbian.
Can I do what I require by using Qt Nokia? I am just not looking the right places?
QDesktop::openUrl may be a good candidate.
This HowTo may be helpful.

Using Qt QWebPage in a Windows QtService

I am using QtService to write a web page thumbnail rendering service. Is it possible to include sufficient of the Gui libraries to keep QtWebKit happy without running into the restriction on interactive services?
I have the websnap sample from websnap.cpp and this somehow convinces the QWebPage component that a Gui is available without actually displaying the widget. When I try to duplicate the environment in the service it complains that there in no gui for the widget.
I strongly suspect that QtService and QWebPage are fundamentally incompatible but have not yet given up hope that there is a workaround.
I am not even sure what it is that the websnap sample does that keeps QWebPage happy (is it just because its linked with the Gui library?)
I am very new to the Qt library so the answer may be obvious to someone with more experience.
Thanks,
Andy
Althought QtWebKit can work in headless environment (without any visible widgets), it still requires graphics libraries etc to be present and functional. Otherwise, how would it compute font metrics, render the text, and so on? Thus, you always need QtGui.
PS: I wrote the websnap example :)

Resources