Is there any form of developer's HUD built into Qt? - 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.

Related

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 adjust sound of QWebView based Qt Application

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.

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 :)

QT or GTK for an embedded real-time display system based on Linux

We are trying to develop a real-time display system in safety critical domain. (All this is at very basic stage.) One option I have is to write my own Widgets using OpenGL. Other two options is to use something like GTK or QT.
QT seems easy to use and has good development tools. But I have worked on several applications in real-time domain using GTK but none in QT.
Can anyone point out to me the trade-offs involved here ?
I am settling with direct OpenGL programming for now.

Resources