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
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
> -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:
> 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
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
> 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
> 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,
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
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
> 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
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
> 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
>
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
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
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
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
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
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
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
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
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
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
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.
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
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:*
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
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:
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
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
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
30 matches
Mail list logo