PDA

View Full Version : How to add a Flash animated label in the software?



Momergil
24th January 2014, 14:10
Hello!

Do you guys remember the Google (and some other companies) adds that popup in the low part of YouTube videos or even at its side?

9977

Well, I, as probably everyone, hates those adds, but I asked myself how could I add such an add (or something very, very similar) inside a Qt/based software. Is it possible to use a QLabel for such Flash animated adds? (Notice that it's not just to put a image; that is easy. The point here is to add a animated add (or even something else that is animated), specifically a Flash animated one. Lets suppose I make a contract with Google for them to put their adds inside my software, for example). I guess maybe I'ld have to use the Qt classes related to internet navigation (QWebView, etc.), but even so I have now idea how this would be done.

Any tips and commentaries are welcome!


Thanks,


Momergil

anda_skoa
24th January 2014, 15:25
You could just put the widget into the content widget but not add it to any layout but place it manually.
Probably using an event filter to move when the content widget is moved or resized by its parent's layout

Cheers,
_