Discussion:
[Qgis-developer] QGIS/Linux on high-resolution displays
Barry Rowlingson
2016-06-07 21:17:46 UTC
Permalink
Ive just bought a Dell XPS13 which came with Ubuntu 14.04
pre-installed. The screen is 3200 pixels across. Getting applications
to scale properly is a nightmare.

QGIS (and I guess all Qt apps) seems to be the worst. The icons are
microscopic, and the text and other interface elements overlap. It is
unusable. Same for Gimp and Inkscape, but I mostly use QGIS.

I've tried a couple of things: "xrandr --scale" ends up with very slow
performance and poor graphics quality; the scaling slider in the
display settings seems only to work with gnome apps.

Any other suggestions? Can I get QGIS to use larger icons? Do I really
have to wait until QGIS adopts Qt 5.6 which, says the internet, has
proper support for high resolution displays? Or do I have to run my
screen at lower resolution?

Barry
Alessandro Pasotti
2016-06-08 05:24:13 UTC
Permalink
Post by Barry Rowlingson
Ive just bought a Dell XPS13 which came with Ubuntu 14.04
pre-installed. The screen is 3200 pixels across. Getting applications
to scale properly is a nightmare.
QGIS (and I guess all Qt apps) seems to be the worst. The icons are
microscopic, and the text and other interface elements overlap. It is
unusable. Same for Gimp and Inkscape, but I mostly use QGIS.
QGIS works pretty well (with some minor glitches) in KDE on 4K and retina
screens, see the tips and the links in this article
http://www.itopen.it/qgis-and-qt-getting-ready-for-hidpi-screens/
Post by Barry Rowlingson
I've tried a couple of things: "xrandr --scale" ends up with very slow
performance and poor graphics quality; the scaling slider in the
display settings seems only to work with gnome apps.
Any other suggestions? Can I get QGIS to use larger icons? Do I really
have to wait until QGIS adopts Qt 5.6 which, says the internet, has
proper support for high resolution displays? Or do I have to run my
screen at lower resolution?
No, try setting:
- the dpi resolution in the display configuration of your OS (system
settings), that is usually a wrapper for xrandr
- for QT5, the env vars QT_DEVICE_PIXEL_RATIO=2 and/or
QT_SCREEN_SCALE_FACTORS=2
- icon size in QGIS can be (at least in part, for the toolbar) configured
in the QGIS options dialog

See also: http://doc.qt.io/qt-5/highdpi.html
Post by Barry Rowlingson
Barry
_______________________________________________
Qgis-developer mailing list
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Alessandro Pasotti
w3: www.itopen.it
Barry Rowlingson
2016-06-08 18:34:17 UTC
Permalink
Post by Alessandro Pasotti
Post by Barry Rowlingson
Ive just bought a Dell XPS13 which came with Ubuntu 14.04
pre-installed. The screen is 3200 pixels across. Getting applications
to scale properly is a nightmare.
QGIS (and I guess all Qt apps) seems to be the worst. The icons are
microscopic, and the text and other interface elements overlap. It is
unusable. Same for Gimp and Inkscape, but I mostly use QGIS.
QGIS works pretty well (with some minor glitches) in KDE on 4K and retina
screens, see the tips and the links in this article
http://www.itopen.it/qgis-and-qt-getting-ready-for-hidpi-screens/
Hmm I had more than minor glitches. The problem is that there were so
many possible things to tweak I could never be sure what was helping!
Post by Alessandro Pasotti
- the dpi resolution in the display configuration of your OS (system
settings), that is usually a wrapper for xrandr
- for QT5, the env vars QT_DEVICE_PIXEL_RATIO=2 and/or
QT_SCREEN_SCALE_FACTORS=2
- icon size in QGIS can be (at least in part, for the toolbar) configured in
the QGIS options dialog
See also: http://doc.qt.io/qt-5/highdpi.html
Since those are all Qt5 things they're no good with QGIS at the
moment, yes? Or is there a QGIS built against Qt5.6+ that I could be
using?

I've got the icons scaled up now, but there's still some tiny UI
elements - the visibility toggles on layers, and the little plus signs
that expand trees are almost invisible...

thanks for the tips

Barry
Eric Goddard
2016-06-09 03:19:53 UTC
Permalink
Hi Barry,

I also have the developer edition of the XPS 13. I've replaced ubuntu
14.04 with Fedora 23, but I think changing the following settings
should work for you too. Change the Style, Icon size, and Font sizes
in QGIS under Settings -> Options.

Changing the Style from GTK+ to Adwaita fixed some of the issues with
drop-downs, buttons, and cell sizes in the attribute table cutting off
the text. You may not have that problem though; I can't remember if
that issue came before or after the switch to Fedora/Gnome 3.

Changing the font size to 11 and the icon size to 48 works for me and
feels pretty 'standard'. Since making those changes QGIS is working
wonderfully on the XPS 13.

Hope that helps!
Eric

On Wed, Jun 8, 2016 at 1:34 PM, Barry Rowlingson
Post by Barry Rowlingson
Post by Alessandro Pasotti
Post by Barry Rowlingson
Ive just bought a Dell XPS13 which came with Ubuntu 14.04
pre-installed. The screen is 3200 pixels across. Getting applications
to scale properly is a nightmare.
QGIS (and I guess all Qt apps) seems to be the worst. The icons are
microscopic, and the text and other interface elements overlap. It is
unusable. Same for Gimp and Inkscape, but I mostly use QGIS.
QGIS works pretty well (with some minor glitches) in KDE on 4K and retina
screens, see the tips and the links in this article
http://www.itopen.it/qgis-and-qt-getting-ready-for-hidpi-screens/
Hmm I had more than minor glitches. The problem is that there were so
many possible things to tweak I could never be sure what was helping!
Post by Alessandro Pasotti
- the dpi resolution in the display configuration of your OS (system
settings), that is usually a wrapper for xrandr
- for QT5, the env vars QT_DEVICE_PIXEL_RATIO=2 and/or
QT_SCREEN_SCALE_FACTORS=2
- icon size in QGIS can be (at least in part, for the toolbar) configured in
the QGIS options dialog
See also: http://doc.qt.io/qt-5/highdpi.html
Since those are all Qt5 things they're no good with QGIS at the
moment, yes? Or is there a QGIS built against Qt5.6+ that I could be
using?
I've got the icons scaled up now, but there's still some tiny UI
elements - the visibility toggles on layers, and the little plus signs
that expand trees are almost invisible...
thanks for the tips
Barry
_______________________________________________
Qgis-developer mailing list
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Loading...