klogg icon indicating copy to clipboard operation
klogg copied to clipboard

Move Selection Down/Up or Scroll Left/Right does not work in Linux

Open crazycliffy opened this issue 3 years ago • 5 comments

Open a log file, then shrink the window. Use keyboard to press "Up/Down" "Left/Right". Expected the selection or the scrolling to work but it does not in Linux version of klogg. The problem is not reproducible in Windows.

Version: klogg-22.06.0.1289-Linux-amd64-oracle7.rpm Platform: Scientific Linux 7.7

Here is a snippet of the verbose level=7 log. I was expecting an entry for "AbstractLogView::moveSelection delta=1" but it is not present for the linux build.

2022-07-14T08:48:46 debug [5937] [AbstractLogView::paintEvent@1007] End of repaint 10642 2022-07-14T08:48:48 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(ShortcutOverride) 2022-07-14T08:48:48 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(KeyRelease) 2022-07-14T08:48:49 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(ShortcutOverride) 2022-07-14T08:48:49 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(KeyRelease) 2022-07-14T08:48:49 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(Leave) 2022-07-14T08:48:50 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(FocusAboutToChange) 2022-07-14T08:48:50 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(FocusAboutToChange) 2022-07-14T08:48:50 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(WindowDeactivate) 2022-07-14T08:48:50 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(WindowDeactivate) 2022-07-14T08:48:50 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(FocusOut) 2022-07-14T08:48:50 debug [5937] [AbstractLogView::event@836] Event! Type: QEvent::Type(Paint) 2022-07-14T08:48:50 debug [5937] [AbstractLogView::paintEvent@918] paintEvent received, firstLine_=0 lastLineAligned_=false rect: 0, 0, 1291, 548 2022-07-14T08:48:50 debug [5937] [AbstractLogView::paintEvent@1007] End of repaint 734

I also made sure I had the klogg keyboard shortcut preferences are default.

primary Up/Down maps to secondary J/K primary Left/Right maps to secondary H/L.

binding the shortcut to other keys does not work in Linux, but is OK working in Windows.

crazycliffy avatar Jul 14 '22 16:07 crazycliffy

This sounds similar to #470, there the shortcuts problem were caused by some incombapitibility between old Qt version and appimage. Which Qt version are you using?

variar avatar Jul 17 '22 10:07 variar

hi @variar , according to the "About Qt", it says it's using 5.11.1. When choosing which packages to install among the "rpm" packaging I selected oracle7. I presume this is for redhat 7. I am not using the AppImage version, since I read in #470 , that requires Qt5.15 and I don't have that installed in our production systems. I am using GNOME under X11.

klogg-22.06.0.1289-Linux-amd64-oracle7.rpm klogg-22.06.0.1289-Linux-amd64-oracle8.rpm

crazycliffy avatar Jul 18 '22 16:07 crazycliffy

I have the same issue on ubuntu 18.04.6 LTS (Bionic Beaver) and it is super annoying, it is impossible to use the application, I am using QT Version 5.9.5

bahaaza avatar Jul 21 '22 12:07 bahaaza

I have the same issue on ubuntu 18.04.6 LTS (Bionic Beaver) and it is super disappointing, the impossible to use the application, I am using QT Version 5.9.5

I have tested the AppImage and it works

bahaaza avatar Jul 21 '22 12:07 bahaaza

Thanks for your testing efforts! Properly testing all combinations of OS+Qt version is difficult. Looks like there is indeed some incompatibility with older Qt versions even outside of Appimage environment.

variar avatar Jul 28 '22 19:07 variar