summary: Support HiPDI screens --> Support HiDPI screens
Description has changed:
Diff:
--- old+++ new@@ -1,3 +1,3 @@-Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately you can tell Qt to handle this.+Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately you can tell Qt to handle this *[via AA_EnableHighDpiScaling]*.Attached is patch.
assigned_to: David Faure
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In my setup, the patch changes nothing. This is because I use Plasma and I have these environment variables set: QT_AUTO_SCREEN_SCALE_FACTOR=0 and QT_SCREEN_SCALE_FACTORS=2.
If I set the former to 1 and unset the latter, or if I apply this patch, the result is the same (as documented for AA_EnableHighDpiScaling). In my case it means all widgets on the left are really big, because Qt autodetects a scaling factor of 3 rather than 2. http://www.davidfaure.fr/2019/qt_auto_scaling.png
However I believe that's Qt (or X) messing up somehow, not the fault of this patch.
On a system where Qt autodetects the right scaling factor, things should indeed be much better with the patch than without. And on systems where it misbehaves, one can set the env vars like I do.
So I have no objection to the patch, it can go in.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I run GNOME 3 (default setup as in F29) + Wayland (default too), on a Dell XPS13. I need to set QT_AUTO_SCREEN_SCALE_FACTOR=1 to have Rosegarden UI be properly sized.
This is how it looks (emacs in the background for comparison):
I'm a bit confused as to what this patch is supposed to do -- both the new version of Rosegarden (with this patch) and the previous version behave the same by default (namely, unusable UI), and also behave the same if I set one of the QT scaling variables above (scaling). In other words, I can't see any difference between the two... am I doing something wrong? My setup is Linux Mint 19 with 4k resolution, and with Cinnamon desktop environment scaled up 2x.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks — what you suggest with the environment variables does indeed work,
but it also works with older versions, which is what had me confused. For
example, up until now I’ve been running version 17.12.1 [Qt 5.9.3] (this is
the version from the Ubuntu repo) and it also responds to those environment
variables seemingly in the same way as the new version. So I was wondering
if you are observing any change in behavior after this patch on your system?
Thanks
David
Status: closed Group: None Created: Sat Jan 19, 2019 03:15 PM UTC by Hubert Figuiere Last Updated: Thu Jun 06, 2019 12:19 AM UTC Owner: David Faure Attachments:
Correction: just tried the two versions on a different system and now I
observe a difference between the two in that the newer version will do the
scaling even without the QT_* variables set, so please ignore my question.
Thanks
David
Thanks — what you suggest with the environment variables does indeed work,
but it also works with older versions, which is what had me confused. For
example, up until now I’ve been running version 17.12.1 [Qt 5.9.3] (this is
the version from the Ubuntu repo) and it also responds to those environment
variables seemingly in the same way as the new version. So I was wondering
if you are observing any change in behavior after this patch on your system?
Thanks
David
Status: closed Group: None Created: Sat Jan 19, 2019 03:15 PM UTC by Hubert Figuiere Last Updated: Thu Jun 06, 2019 12:19 AM UTC Owner: David Faure Attachments:
Status: closed
Group: None
Created: Sat Jan 19, 2019 03:15 PM UTC by Hubert Figuiere
Last Updated: Thu Jun 06, 2019 02:15 AM UTC
Owner: David Faure
Attachments:
patch-hub-20190119.diff (409 Bytes; text/x-patch)
Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately you can tell Qt to handle this [via AA_EnableHighDpiScaling].
Diff:
I tested this patch on a 4K Linux laptop, and:
QT_AUTO_SCREEN_SCALE_FACTOR=0andQT_SCREEN_SCALE_FACTORS=2.However I believe that's Qt (or X) messing up somehow, not the fault of this patch.
On a system where Qt autodetects the right scaling factor, things should indeed be much better with the patch than without. And on systems where it misbehaves, one can set the env vars like I do.
So I have no objection to the patch, it can go in.
I run GNOME 3 (default setup as in F29) + Wayland (default too), on a Dell XPS13. I need to set
QT_AUTO_SCREEN_SCALE_FACTOR=1to have Rosegarden UI be properly sized.This is how it looks (emacs in the background for comparison):
Patch applied in [r15444].
Related
Commit: [r15444]
I'm a bit confused as to what this patch is supposed to do -- both the new version of Rosegarden (with this patch) and the previous version behave the same by default (namely, unusable UI), and also behave the same if I set one of the QT scaling variables above (scaling). In other words, I can't see any difference between the two... am I doing something wrong? My setup is Linux Mint 19 with 4k resolution, and with Cinnamon desktop environment scaled up 2x.
I don't really know anything about HiDPI, but maybe the environment variables aren't getting to rosegarden? E.g. to try enabling automatic scaling:
Alternatively, you can use export to get the environment variable to "stick" across commands:
This is the only thing that comes to mind for me, as I've been bitten by this in the past. Doing the following will not work at all:
Thanks — what you suggest with the environment variables does indeed work,
but it also works with older versions, which is what had me confused. For
example, up until now I’ve been running version 17.12.1 [Qt 5.9.3] (this is
the version from the Ubuntu repo) and it also responds to those environment
variables seemingly in the same way as the new version. So I was wondering
if you are observing any change in behavior after this patch on your system?
Thanks
David
On Wed, Jun 5, 2019 at 10:15 PM Ted Felix tedfelix@users.sourceforge.net
wrote:
Related
Bugs:
#1565Correction: just tried the two versions on a different system and now I
observe a difference between the two in that the newer version will do the
scaling even without the QT_* variables set, so please ignore my question.
Thanks
David
On Wed, Jun 5, 2019 at 10:35 PM David Sicilia dpsicilia@gmail.com wrote:
Related
Bugs:
#1565FWIW, the patch. which make setting the env unnecessary, only works with Qt5 5.12 and up. So 5.9 is too old for that.
Thanks Hubert, that explains what I am seeing.
David
On Wed, Jun 5, 2019 at 11:37 PM Hubert Figuiere
hub@users.sourceforge.net wrote:
Related
Bugs:
#1565