Animated gifs in HTML tooltip.

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
josegegas
Posts: 241
Joined: Sat Feb 11, 2017 12:54 am
Location: New Zealand

Animated gifs in HTML tooltip.

Post by josegegas »

Hello.

A few versions ago FreeCAD implemented HTML for the tooltips, and I would like to implement explanatory animated gifs (or any other format) for the tooltip, something like:

Code: Select all

<html>
<body>

<h2>Animated Images</h2>

<p>HTML allows moving images:</p>

<img src="programming.gif" alt="Computer man" style="width:48px;height:48px;">

</body>
</html>
However, within FreeCAD the .gif is shown as a static image, no animation.

Any help will be very welcome.

Cheers.
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Animated gifs in HTML tooltip.

Post by Syres »

In Qt Tooltips I don't believe animated gifs are supported.
mario52
Veteran
Posts: 4673
Joined: Wed May 16, 2012 2:13 pm

Re: Animated gifs in HTML tooltip.

Post by mario52 »

Hi

idea :

qtooltip-with-animated-gif

example use QtGui.QMovie() Dialog_creation_image_and_animated_GIF

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Aliyaa
Posts: 3
Joined: Wed Jun 21, 2023 2:34 pm

Re: Animated gifs in HTML tooltip.

Post by Aliyaa »

josegegas wrote: Mon May 29, 2023 3:12 pm Hello.

A few versions ago FreeCAD implemented HTML for the tooltips, and I would like to implement explanatory animated gifs (or any other format) for the tooltip, something like:

Code: Select all

<html>
<body>

<h2>Animated Images</h2>

<p>HTML allows moving images:</p>

<img src="programming.gif" alt="Computer man" style="width:48px;height:48px;">

</body>
</html>
However, within FreeCAD the .gif is shown as a static image, no animation.

Any help will be very welcome.

Cheers.
Hi guys
The addition of HTML tooltips in FreeCAD a few versions ago was a great enhancement. Now, with the possibility of implementing explanatory animated gifs or other formats, the tooltips can become even more informative and interactive.
Last edited by Roy_043 on Mon Jul 31, 2023 2:54 pm, edited 2 times in total.
Reason: Removed spam link
josegegas
Posts: 241
Joined: Sat Feb 11, 2017 12:54 am
Location: New Zealand

Re: Animated gifs in HTML tooltip.

Post by josegegas »

Agreed. It would be awesome to be able to easily include animation in the tooltips, as for example Siemens Solid Edge does. This would be extremely useful for the user.
Post Reply