Hello,
I have a very fresh Ubuntu 15.06 installed, my first Ubuntu after many years of Debian. I installed CQRLOG from the PPA repository, version 1.9.0. Somehow all text and buttons are scaled unevenly or are not spaced, the text doesn't fit into its place. Changing font sizes in Preferences didn't do anything good. In the old days I would have tackled this issue with gtk-theme-switch, but this is not really available/useful with Unity I guess. Please have a look at this screenshot to get an impression: http://www.df6fr.de/CQRlogScalingSpacing.png
Any suggestion what might cause and could repair this?
73 de Corny, Df6fR
Sun, 2015-06-07 17:10
#1
CQRLOG scaling and spacing issue with Unity
Hi Corny,
in Preferences, there is a Font settings. There you can change the fonts. It's very strange, I've never seen this as a default.
73 Petr, OK2CQR
--
http://HamQTH.com/ok2cqr
https://ok2cqr.com
Hi Petr,
as I wrote above: Changing font sizes in Preferences didn't do anything to this problem. The font enlarged, but still everything overlaps.
73, Corny
I now removed the check box for Use Defaults in the Fonts tab. It actually gets worse, when increasing the font type. No rescaling at all:
http://www.df6fr.de/CQRlogScale2.png
And when you set smaller font size in CQRLOG preferences, what happen?
--
http://HamQTH.com/ok2cqr
https://ok2cqr.com
I will test it! But then I cannot read it anymore, because my screen resolution is 3200x1800. This would only be a temporary fix.
Ok, when I change down to font sizes of 6, then there is no cutting or overlapping problem. The program looks fine. But even if I go to size 7 or 8, the words are cut off or overlap with boxes and buttons. There seems to be no scaling of the widgets with the font size. There has to be some GTK problem on my Ubunut install, can you please check, that the widgets scale if you goto font sizes greater 10 or 12?
Tks es 73
This is a big problem, not only with CQRLOG. You can find many information about this with Google with the search phrase "HighDPI". Every software which is using a fix scaling has this problem. If you use small fonts, which fits to the widgets, you can't read it. If you choose bigger fonts, they don't fit on the widgets.
I know only two programming environments, which could handle this: FLTK (the toolkit which is used for FlDigi) and QT. Also the Mac OS can handle this correct on Retina displays. We had discussed at qrpforum.de some month ago.
I wrote a small demo with FLTK. The Linux build should run directly. But the source is also available. This demo resizes widgets and fonts if the window is resized.
Sorry, forget the link for the demo
http://git.dl7bj.org/HighDPI/tree/98378a234aa3f3a51a4ff9a9f54d9e4b467f87...
I had not had a look at that programing software before and it has a very nice interface. I get a couple of bugs with my Linux Mint 17.2 with the "worked" list box not filling properly when expanded down and the "Name" label not re-sizing. Overall the look is very crisp and easy to read even on my laptop even when shrunk to minimum. It would be very interesting to see the same demo in Qt5.
73, Graeme ZL2APV
Graeme, it was only a fast hack to test the automatically resize. I think, I forgot the Name label in the resize routine. But this is not important. The source should only show, how this could be solved.
There is also a Windows Demo, built with the same source.
http://git.dl7bj.org/HighDPI/tree/98378a234aa3f3a51a4ff9a9f54d9e4b467f87...
The source for the FLTK Libs and the docs are here: http://www.fltk.org/index.php
Nearly every Linux Distribution comes with it. A goog IDE for development ist CodeBlocks. This link shows many screenshots of software made with FLTK:
https://www.google.de/search?q=FLTK&biw=1245&bih=893&source=lnms&tbm=isc...
I have not enough Qt experience and time to make a demo with Qt. I had tried it with Lazarus, loop through every component of a Form. but it seems, that some components have problems with the scaling, so I give it up.
73, Tom
Hi Tom yes I had guessed it had been cobbled together for a demo. I just thought I would point out a couple of bits to tidy up in case you wanted to present it again in the future.
I am really pleased you showed this off as I will have a little play with it in the future. Without your post I may have missed the technology.
73, Graeme zl2apv
Watch my video to see the solution. I'm using Ubuntu 20.10 https://youtu.be/_yTOvTmA-Ng