cqrlog
cqrlog copied to clipboard
support for 4K/UHD screens
support for 4K/UHD screens https://www.cqrlog.com/node/2262 cqrlog should be make ready to support 4K/UHD screens out of the box.
I'm very interested in this. I don't use any computers anymore that have simple HD screens - even my laptop runs at a "high" DPI. As far as I see, the issue with cqrlog is that it uses GTK2, which doesn't support scaling. I have tried using a theme created by https://github.com/themix-project/oomox - it has the ability of creating extra-large themes to fake High DPI for GTK2 - but cqrlog looked exactly the same with the theme applied.
I found a forum thread that mentioned QT5, which would obviously be an option. If there is such a build available, I'd be happy to test it. On the other hand, wouldn't it be easier to move to GTK3?
What would it take to make a High DPI-cqrlog happen?
If you can compile source you can try QT5. At the moment only known problem is that Grayline map does not connect to RBN with QT5. All other things seems to work so far. If you can not complle look at my Git cqrlog clone, branch "loc_testing". There is subfolder "compiled" with QT5 executable and instructions how to update. https://github.com/OH1KH/cqrlog/tree/loc_testing/compiled You can try it if you first install a working official version and then update (maybe to virtual machine, just for testing)
GTK3 does not compile cqrlog at the moment. It stops to some Lazarus internal code bugs. ( https://wiki.lazarus.freepascal.org/Qt5_Interface#Why_Qt5_instead_of_GTK_.3F )
I made a test yesterday evening on my Chromebook and managed to compile with QT5. The result on the Chromebook was pretty good in terms of UI layout, but I noticed a few issues with buttons (couldn't click them - had to use the keyboard) and menus (very high items). However, I don't have any actual data on the Chromebook, so I will repeat the process on a machine that I normally use to run - there's a chance that things will work better there as well, since the Chromebook sometimes has X11/Wayland issues anyway. I'll update this thread when I have results.
Okay, built my own now on the real machine and it works perfectly - no issues with buttons or menus at all. Very usable on the 4k screen as well. Excellent!
Btw - I left the existing installation in place on this machine and simply installed all the new stuff in ~/.local
and sub-folders. This way it's easy to remove or to replace with newer versions in the future.
OK! Nice to hear. Could we consider to close this issue because QT5 works for solution to 4K screens?
Perhaps there should be an "official" package for the qt5 version so it becomes more accessible for those who don't want to install or build manually.
Anything in this topic?:) cqrlog is still unusable on 4k/uhd screens;(
Hi ! I do not work with packages nor have any 4k/uhd screens for testing ;( If I understood right Petr has had some difficulties with packaging lately.
But perhaps new package could have qt5pas included in dependencies and then have two binaries "cqrlog" and "cqrlog_qt" inside to choose.
That is just my quick idea...
Is this about a lot of development work to confirm qt5 is working with UHD/4k screens? Or it is just about compilation with newer library and making tests? If it is the second one than it makes sense for me to try... Or maybe you already have some branch on which it can be tested by me for example?
The version I built for myself back in July 2020 worked fine with QT5 and HD screens. I stopped using it for various reasons, but I would expect this approach to still work today. An included binary that uses QT5 should probably solve this problem for everybody.
Edit: comes to mind to explain this - when I say HD screens, I really mean "high DPI", as in anything that's a bit more than 1920x1080 resolution. In my experience this applies to pretty much every laptop I've seen in a decade, so I'm surprised that @OH1KH doesn't have any? But fair enough - anyway, that's what I meant. I tried this last year both with a 4k screen on my main machine, and with a Chromebook tablet that had a weird "in-between" resolution.
Yep I am tryin to get it working on XPS 13 that works with: 3840x2400 resolution with 200% scale.
@oliversturm Thanks for your work on it... I've fresh Ubuntu 20.04 LTS with all updates. Installed libqt5pas1. Overwritten your binary of cqrlog and also help files. But I get Access violation on early begining;\
Cloning or downloading source ZIP from GitHub includes Makefile that has option "cqrlog_qt5"
It has been there for some time now. Instead of issuing "make" just issue "make cqrlog_qt5" will do qt5 version. just be sure that libqt5pas (or what name your linux distribution uses) and it's devel package are both installed.
Developing cqrlog is the same with GTK and QT5. It is just the compile stage that needs another option. And of course checking that both versions results same way. Sometimes QT5 needs more attention to form design. The results are depended on how FPC/Lazarus IDE does the job. There is nothing else than from design checks that we can do for QT5 version of cqrlog.
What comes to my laptop, that is my main computer, it is just an old second hand Lenovo ThinkPad X201 with 1280x800 resolution (it even does not have HDMI socket!) and secondary display with 1440x900 resolution. I don't have glorious Hamshack here. See it at time 0:55 of this video https://www.youtube.com/watch?v=Vd-dhD8acIs&t=5s