Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-15 Thread Uwe Rathmann
On Thu, 15 Mar 2018 14:17:00 +, Shawn Rutledge wrote: > That sounds interesting. What format do you want to precompile them to? Well, as all we need is to restore the members of a class exactly, like they have been in memory, before we wrote them to disk, there should be a way to do this

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-15 Thread Uwe Rathmann
On Thu, 15 Mar 2018 14:26:41 +, Shawn Rutledge wrote: >> I see that Uwe has pointed out a performance issue which can happen >> because of multiple renderings due to size changes. Is that it? Or are >> there other reasons behind preferring PNG icons over SVG? > > I think it’s mainly that SVG

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-15 Thread Mitch Curtis
> -Original Message- > From: Interest [mailto:interest-bounces+mitch.curtis=qt...@qt-project.org] > On Behalf Of Shawn Rutledge > Sent: Thursday, 15 March 2018 3:27 PM > To: Shantanu Tushar > Cc: Qt Project MailingList > Subject: Re:

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-15 Thread Shawn Rutledge
> On 15 Mar 2018, at 15:58, Nikolai Tasev wrote: > > On 3/15/2018 4:26 PM, Shawn Rutledge wrote: >> In the future I think it will make sense to use PDF for vector icons too (in >> color, even). (Some frameworks already can do this.) Then instead of an icon >> font, you could

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-15 Thread Nikolai Tasev
On 3/15/2018 4:26 PM, Shawn Rutledge wrote: In the future I think it will make sense to use PDF for vector icons too (in color, even). (Some frameworks already can do this.) Then instead of an icon font, you could have one PDF file with all the icons for your app, one icon per “page”. I hope

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-15 Thread Shawn Rutledge
> On 15 Mar 2018, at 14:20, Shantanu Tushar wrote: > > On 6 March 2018 at 22:15, Xavier Bigand wrote: > Hi, > > If your sample picture is relevant I can suggest you to convert it as SVG > (vectoring it) or using distance field technique. > > I

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-15 Thread Shawn Rutledge
> On 8 Mar 2018, at 07:18, Uwe Rathmann wrote: > > On Wed, 07 Mar 2018 20:55:03 +0100, Jason H wrote: > >> How is QPicture not appropriate for SVG? > > At the time, when Qt changed its APIs from integers to doubles ( Qt 4 ) > QPicture::boundingRect() was forgotten,

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-15 Thread Shantanu Tushar
On 6 March 2018 at 22:15, Xavier Bigand wrote: > Hi, > > If your sample picture is relevant I can suggest you to convert it as SVG > (vectoring it) or using distance field technique. > I had this question for a while now - if we can use SVGs for showing application

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-07 Thread Uwe Rathmann
On Wed, 07 Mar 2018 20:55:03 +0100, Jason H wrote: > How is QPicture not appropriate for SVG? At the time, when Qt changed its APIs from integers to doubles ( Qt 4 ) QPicture::boundingRect() was forgotten, what makes layouting of scaled pictures too inaccurate. Another important detail are

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-07 Thread Jason H
> Sent: Wednesday, March 07, 2018 at 8:10 AM > From: "Uwe Rathmann" > To: interest@qt-project.org > Subject: Re: [Interest] How to render small Images decently on non retina > displays with QtQuick? > > Hi Shawn, > ... > > I once derived a small class from QQuickImage

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-07 Thread Uwe Rathmann
Hi Shawn, > It should also be considered a bug IMO. The only obvious part of the whole disaster that IMO qualifies as a "bug" is the fact, that binding a size ends up in 2 calls - but AFAIK this is not specific to QQuickImage. Maybe one could say, that QQuickImage shouldn't do any updates

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-07 Thread Shawn Rutledge
> On 7 Mar 2018, at 09:08, Uwe Rathmann wrote: > > On Tue, 06 Mar 2018 16:55:23 +, Nuno Santos wrote: > >> I just had to add it to resources and pass it to the image element. > > Using Image works, but its implementation is far from being optimal in >

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-07 Thread Nuno Santos
Uwe, Thanks for things insight! Regards, Nuno > On 7 Mar 2018, at 08:08, Uwe Rathmann wrote: > > On Tue, 06 Mar 2018 16:55:23 +, Nuno Santos wrote: > >> I just had to add it to resources and pass it to the image element. > > Using Image works, but its

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-07 Thread Xavier Bigand
This is good to know, I personally never fall in a such case, but I will keep that in a corner of my head. Thank you. 2018-03-07 9:08 GMT+01:00 Uwe Rathmann : > On Tue, 06 Mar 2018 16:55:23 +, Nuno Santos wrote: > > > I just had to add it to resources and pass it

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-07 Thread Uwe Rathmann
On Tue, 06 Mar 2018 16:55:23 +, Nuno Santos wrote: > I just had to add it to resources and pass it to the image element. Using Image works, but its implementation is far from being optimal in combination with SVGs. For small applications with only few SVGs this might be no problem, but

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Nuno Santos
Worked like charm! Thanks for your prompt reply. Best! Nuno > On 6 Mar 2018, at 23:35, Giuseppe D'Angelo wrote: > > Il 07/03/2018 00:16, Nuno Santos ha scritto: >> Does anyone knows which modules we need to have compiled in order to make >> svg support work? >> I

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Giuseppe D'Angelo
Il 07/03/2018 00:16, Nuno Santos ha scritto: Does anyone knows which modules we need to have compiled in order to make svg support work? I depend on a static build of Qt and while I was able to use SVG with the prebuilt Qt, I couldn’t make use of it using my static build. I realised I was

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Nuno Santos
Does anyone knows which modules we need to have compiled in order to make svg support work? I depend on a static build of Qt and while I was able to use SVG with the prebuilt Qt, I couldn’t make use of it using my static build. I realised I was missing qtsvg module but even after including it

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Nuno Santos
Xavier, SVG did the trick I just had to add it to resources and pass it to the image element. Looking great now!! :) Thank you all for your help Best, Nuno > On 6 Mar 2018, at 16:50, Xavier Bigand wrote: > > I think that you just have to link the svg

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Xavier Bigand
The anti-aliasing only works on edges except for the Super Sampling AA. 2018-03-06 17:49 GMT+01:00 Nuno Santos : > Allan, > > I have tried to enable antialiasing to true but it didn’t made any > difference > > :( > > > On 6 Mar 2018, at 16:47, Allan Sandfeld Jensen

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Xavier Bigand
I think that you just have to link the svg module, if I remember correctly, then in QML just use it as source of an Image item. The only think is that you have to fix the size of the item as the sourceSize have no sense here. 2018-03-06 17:47 GMT+01:00 Nuno Santos : > I

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Nuno Santos
Allan, I have tried to enable antialiasing to true but it didn’t made any difference :( > On 6 Mar 2018, at 16:47, Allan Sandfeld Jensen wrote: > > On Dienstag, 6. März 2018 17:44:19 CET Allan Sandfeld Jensen wrote: >> On Dienstag, 6. März 2018 16:50:23 CET Nuno Santos

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Nuno Santos
I have never used SVG in QtQuick. What can be used to render SVG’s in QtQuick? > On 6 Mar 2018, at 16:45, Xavier Bigand wrote: > > Hi, > > If your sample picture is relevant I can suggest you to convert it as SVG > (vectoring it) or using distance field technique.

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Allan Sandfeld Jensen
On Dienstag, 6. März 2018 17:44:19 CET Allan Sandfeld Jensen wrote: > On Dienstag, 6. März 2018 16:50:23 CET Nuno Santos wrote: > > Mitch, > > > > Thanks for your reply. > > > > You are right. I’m not playing all the cards… > > > > Original image attached (it is white over transparent so you

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Xavier Bigand
Hi, If your sample picture is relevant I can suggest you to convert it as SVG (vectoring it) or using distance field technique. 2018-03-06 17:06 GMT+01:00 Jason H : > Maybe this has something to do with with mipMapping/smooth? It looks like > it's not anti-aliasing? > > *Sent:*

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Allan Sandfeld Jensen
On Dienstag, 6. März 2018 16:50:23 CET Nuno Santos wrote: > Mitch, > > Thanks for your reply. > > You are right. I’m not playing all the cards… > > Original image attached (it is white over transparent so you will not see it > in the email body. The file is called isotope.png) > Looks like you

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Jason H
Maybe this has something to do with with mipMapping/smooth? It looks like it's not anti-aliasing?   Sent: Tuesday, March 06, 2018 at 10:50 AM From: "Nuno Santos" To: "Mitch Curtis" Cc: "Qt Project MailingList" Subject: 

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Nuno Santos
Mitch, Thanks for your reply. You are right. I’m not playing all the cards… Original image attached (it is white over transparent so you will not see it in the email body. The file is called isotope.png) The item who renders this is the following: import QtQuick 2.4 Item { id: root

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread ekke
I'm using QtQuickControls2 and Qt::AA_EnableHighDpiScaling and so all my images are deployed with my app in different solutions per ex a 24x24px Icon test.png (24x24) -- for 160 dpi -- t...@2x.png (48x48) t...@3x.png (72x72) t...@4x.png (96x96) and so for all devices with all kind of dpi by

Re: [Interest] How to render small Images decently on non retina displays with QtQuick?

2018-03-06 Thread Mitch Curtis
Can you elaborate on "really bad", and also share a screenshot? From: Interest [mailto:interest-bounces+mitch.curtis=qt...@qt-project.org] On Behalf Of Nuno Santos Sent: Tuesday, 6 March 2018 4:27 PM To: Qt Project MailingList Subject: [Interest] How to render small