[SailfishDevel] Big images in qml rich text

Michael Neufing michael at neufing.org
Thu Jul 30 07:49:09 UTC 2015


Hi Samuli,

you could maybe generate preview images on C++ side that have a max size 
using a custom image provider [1]. Something like 
"image://myprovider/url-of-image"...
Then you could make this image "clickable" and show the full image in a 
extra window or something.

This is just an idea, I have no clue if this is possible :)

[1] http://doc.qt.io/qt-5/qquickimageprovider.html

---
Mit freundlichen Grüßen,

Michael Neufing

Am 29.07.2015 21:46, schrieb Samuli Silvius:
> Hi,
> 
> I have a problem with jolla2gether app when question includes big
> image. App is showing text as rich text with qml html markup i..e
> images are shown as <img>. If image size in very big it will jam not
> only the app but whole phone until it reboots itself.
> 
> Any way to prevent? img tag supports only width and height attributes
> and those does not help the situation.
> 
> Example of such together link:
> https://together.jolla.com/question/97469/how-to-replace-earreceiver-speaker/
> [1]
> 
> Br
> -Samuli
> 
> Links:
> ------
> [1]
> https://together.jolla.com/question/97469/how-to-replace-earreceiver-speaker/
> 
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to 
> devel-unsubscribe at lists.sailfishos.org


More information about the Devel mailing list