Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread Elvis Stansvik
Den 2 mars 2018 6:28 em skrev "Elvis Stansvik" : Den 2 mars 2018 6:05 em skrev "John Weeks" : Do it in the showEvent()? Hum, that's a good idea, thanks. I guess the parentage up to a top level widget will always have been established by then, and that top level window will always have a windowH

Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread Elvis Stansvik
Den 2 mars 2018 6:05 em skrev "John Weeks" : Do it in the showEvent()? Hum, that's a good idea, thanks. I guess the parentage up to a top level widget will always have been established by then, and that top level window will always have a windowHandle()? I guess in my event handler I should als

Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread John Weeks
Do it in the showEvent()? > On Mar 2, 2018, at 8:16 AM, Elvis Stansvik wrote: > > 2018-03-02 16:26 GMT+01:00 Martins, Sérgio : >> On 2018-03-02 15:21, Elvis Stansvik wrote: >>> >>> 2018-03-02 16:18 GMT+01:00 Elvis Stansvik : 2018-03-02 15:54 GMT+01:00 Nikos Chantziaras : > >

Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread Elvis Stansvik
2018-03-02 16:26 GMT+01:00 Martins, Sérgio : > On 2018-03-02 15:21, Elvis Stansvik wrote: >> >> 2018-03-02 16:18 GMT+01:00 Elvis Stansvik : >>> >>> 2018-03-02 15:54 GMT+01:00 Nikos Chantziaras : On 02/03/18 16:37, Elvis Stansvik wrote: > > > [...] > How can I (as applicati

Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread Martins , Sérgio
On 2018-03-02 15:21, Elvis Stansvik wrote: 2018-03-02 16:18 GMT+01:00 Elvis Stansvik : 2018-03-02 15:54 GMT+01:00 Nikos Chantziaras : On 02/03/18 16:37, Elvis Stansvik wrote: [...] How can I (as application developer) get notified of screen changes of non-QWindow-backed widgets? There se

Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread Elvis Stansvik
2018-03-02 16:18 GMT+01:00 Elvis Stansvik : > 2018-03-02 15:54 GMT+01:00 Nikos Chantziaras : >> On 02/03/18 16:37, Elvis Stansvik wrote: >>> >>> [...] >>> How can I (as application developer) get notified of screen changes of >>> non-QWindow-backed widgets? >> >> >> There seems to be two ways to do

Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread Elvis Stansvik
2018-03-02 15:54 GMT+01:00 Nikos Chantziaras : > On 02/03/18 16:37, Elvis Stansvik wrote: >> >> [...] >> How can I (as application developer) get notified of screen changes of >> non-QWindow-backed widgets? > > > There seems to be two ways to do this. One is using one of the QScreen > signals: > >

Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread Nikos Chantziaras
On 02/03/18 16:37, Elvis Stansvik wrote: [...] How can I (as application developer) get notified of screen changes of non-QWindow-backed widgets? There seems to be two ways to do this. One is using one of the QScreen signals: http://doc.qt.io/qt-5/qscreen.html However, another one seems t

Re: [Interest] High-dpi fixing for Qt 5.5

2018-03-02 Thread Elvis Stansvik
2015-03-24 17:01 GMT+01:00 Till Oliver Knoll : > > > Am 24.03.2015 um 15:46 schrieb Agocs Laszlo : > > Because Qt 3D most likely misses a few multiplications by > devicePixelRatio(). Probably easy to correct. > > > > See > http://www.qtdeveloperdays.com/sites/default/files/presentation_pdf/AgocsLas

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-26 Thread Stanislav Baiduzhyi
On Thursday 19 March 2015 13:17:05 Sorvig Morten wrote: > Hi, > > Those who have filed or are watching bugs related to high-dpi support in Qt > may have noticed increased activity this week; we are running a small > sprint to get things into shape for 5.5. > In case there issues that I’ve missed

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-26 Thread Sorvig Morten
> On 26 Mar 2015, at 16:03, Sorvig Morten > wrote: > > >> On 25 Mar 2015, at 17:21, John Weeks wrote: >> >> It looks to me like at present (Qt 5.4) the various devicePixelRatio() >> functions on Windows only return 1.0 or 2.0. But Windows systems can be at >> fractional ratios- will 5.5 ad

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-26 Thread Sorvig Morten
> On 25 Mar 2015, at 17:21, John Weeks wrote: > > It looks to me like at present (Qt 5.4) the various devicePixelRatio() > functions on Windows only return 1.0 or 2.0. But Windows systems can be at > fractional ratios- will 5.5 address that? > > It also appears that drawing a QPixmap or QImag

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-26 Thread Till Oliver Knoll
> Am 25.03.2015 um 14:01 schrieb Sorvig Morten : > > >> On 24 Mar 2015, at 17:01, Till Oliver Knoll >> wrote: >> >> But since the QGraphicsPixmapItem is doing the drawing for me, ... > > ... > > To me QGraphicsPixmapItem::paint() looks like the right place to generate a > new pixmap on dem

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-25 Thread John Weeks
It looks to me like at present (Qt 5.4) the various devicePixelRatio() functions on Windows only return 1.0 or 2.0. But Windows systems can be at fractional ratios- will 5.5 address that? It also appears that drawing a QPixmap or QImage with a fractional ratio actually works, but we can't disco

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-25 Thread Sorvig Morten
> On 24 Mar 2015, at 17:01, Till Oliver Knoll > wrote: > > But since the QGraphicsPixmapItem is doing the drawing for me, I probably > really need to get informed about resolution changes, and replace the pixmaps > in the QGraphicsViewItem myself as needed (unless I am overseeing some other,

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-25 Thread Sorvig Morten
> On 24 Mar 2015, at 15:05, Till Oliver Knoll > wrote: > > > [self setWantsBestResolutionOpenGLSurface:YES]; > > If you don't opt in, the system magnifies the rendered results." Note that Qt opts in for you and calls the above API. Disabling it will most likely work around the “rendering t

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-25 Thread Sorvig Morten
> On 24 Mar 2015, at 14:26, Till Oliver Knoll > wrote: > > > Am 19.03.2015 um 14:17 schrieb Sorvig Morten : > >> Hi, >> >> ... >> >> In case there issues that I’ve missed I would be interested in hearing about >> it. I can’t promise that everything will be fixed, but it will be at least >

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-24 Thread Till Oliver Knoll
> Am 24.03.2015 um 15:46 schrieb Agocs Laszlo : > > Because Qt 3D most likely misses a few multiplications by devicePixelRatio(). > Probably easy to correct. > > See > http://www.qtdeveloperdays.com/sites/default/files/presentation_pdf/AgocsLaszlo_opengl_enablers_news.pdf#26 > Hi Laszlo,

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-24 Thread Eddie Sutton
6> > > Best regards, > Laszlo > > From: interest-bounces+laszlo.agocs=theqtcompany@qt-project.org > [mailto:interest-bounces+laszlo.agocs=theqtcompany@qt-project.org] On > Behalf Of Till Oliver Knoll > Sent: 24. mars 2015 15:06 > To: Qt Project > Subject:

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-24 Thread Agocs Laszlo
-project.org [mailto:interest-bounces+laszlo.agocs=theqtcompany@qt-project.org] On Behalf Of Till Oliver Knoll Sent: 24. mars 2015 15:06 To: Qt Project Subject: Re: [Interest] High-dpi fixing for Qt 5.5 Am 24.03.2015 um 14:39 schrieb Eddie Sutton mailto:edsut...@gmail.com>>: >My

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-24 Thread Till Oliver Knoll
> Am 24.03.2015 um 14:39 schrieb Eddie Sutton : > >> >My knowledge of available "HiDPI" APIs is currently based on your >> >(excellent) blog post, which does not seem to mention that use case: >> >> >> >http://blog.qt.io/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/ > > Tha

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-24 Thread Eddie Sutton
> >My knowledge of available "HiDPI" APIs is currently based on your > >(excellent) blog post, which does not seem to mention that use case: > > > >http://blog.qt.io/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/ > >

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-24 Thread Till Oliver Knoll
> Am 19.03.2015 um 14:17 schrieb Sorvig Morten : > > Hi, > > ... > > In case there issues that I’ve missed I would be interested in hearing about > it. I can’t promise that everything will be fixed, but it will be at least > put on the radar. Hi Morten, Not a bug by itself and hence a bit o

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-24 Thread Sorvig Morten
> On 21 Mar 2015, at 00:16, Daiwei Li wrote: > > Hi Morten, > > Do you know if auto-detection of scale factor on Windows is going to be > tackled again: https://codereview.qt-project.org/#/c/87716/? > > There's no specific bug open for it besides being mentioned on the Windows > High DPI met

Re: [Interest] High-dpi fixing for Qt 5.5

2015-03-20 Thread Daiwei Li
Hi Morten, Do you know if auto-detection of scale factor on Windows is going to be tackled again: https://codereview.qt-project.org/#/c/87716/? There's no specific bug open for it besides being mentioned on the Windows High DPI meta-bug: https://bugreports.qt.io/browse/QTBUG-38993, but perhaps th