Re: [Interest] QOpenGLWidget strokes premul, while QWidget is straight?

2019-12-07 Thread David M. Cotter
no OpenGL experts on the list?

> On Dec 5, 2019, at 5:21 PM, David M. Cotter  wrote:
> 
> referring to this article 
> ,
>  i see someone else has also run into this, but did not get a satisfactory 
> answer.
> 
> I am implementing what on macOS Carbon is known as a "transparency layer", 
> that is, you begin a transparency context, do your drawing (with 
> transparency), finish your context, then blit the contents of that context as 
> a whole with a specified transparency (this is to achieve "fade away" via 
> animation).
> 
> When i use QWidget, my stroked paths (text) look creamy smooth along the 
> edges, as if everything is in fact being handled as straight alpha:
> 
> 
> 
> However, if i switch to using QOpenGLWidget, my stroked paths appear to have 
> a crusty border, as if they were drawn with premul-over-black alpha:
> 
> 
> 
> No other code changes except swapping QOpenGLWidget for QWidget.
> 
> Does this seem... unexpected? Note if i attempt to manually unmultiply, 
> things look much worse, so i don't think it's PRECISELY a premul thing. (and 
> i know my manual unmultiply works because unit tests)
> 
> (Ignore for now the fact that it's white-on-white, i know that, i'm NOT 
> drawing the black text behind the stroke to more clearly illustrate the halo 
> around the strokes)
> 
> -dave

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] cdn.qt.io is currently unable to handle this request.

2019-12-07 Thread maitai


+1

Le 07-12-2019 21:08, Nuno Santos a écrit :

Hi,

Is anyone having the same problem while trying to download Qt
installer or using the maintenance tool?

Best,

Nuno
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] cdn.qt.io is currently unable to handle this request.

2019-12-07 Thread Nuno Santos
Hi,

Is anyone having the same problem while trying to download Qt installer or 
using the maintenance tool?

Best,

Nuno
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Tricks to improve moc performance?

2019-12-07 Thread Uwe Rathmann

On 12/6/19 7:02 PM, Richard Weickelt wrote:


By the way: does anyone know about an implementation that avoids moc runs in
a similar way how ccache avoids compile runs ?


You mean concatenating header and source files containing a Q_OBJECT macro
and feeding moc the result?


No - the ideas would be to calculate a hashsum from the files, that have 
an effect on the moc file and store it together with the moc file in a 
cache.


Then you have a replacement for moc, that compares the hashsum of the 
cache with the current hashsum and copies the cached moc file if they 
match - otherwise it is calling moc and copies the result into its cache.


Not 100% sure but IIRC this is how ccache works.

Uwe



___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest