nickbnf / glogg

A fast, advanced log explorer.
http://glogg.bonnefon.org/
GNU General Public License v3.0
1.16k stars 357 forks source link

Selecting text with the mouse does not work correctly: Selection is always shifted to the right #188

Open omasseau opened 6 years ago

omasseau commented 6 years ago

When I want to select text with my mouse to copy it, the selection does not start at the character under my mouse pointer but several characters to the right of it. Same goes for the end of the selection. This makes it really hard to copy some text from a line.

The more the start of the selection is to the right, the bigger is the offset.

Version: glogg v1.1.4-x86_64 OS: Windows 10 Pro 64 bits.

variar commented 6 years ago

Might be some text encoding issue. Could you provide a log file which causes this error?

omasseau commented 6 years ago

Well I have the problem with any kind of file. Even a simple file with one line of text such as the one attached. Encoding does not change anything. I've tried UTF-8 files, Windows-1252, .... same problem.

test.txt

omasseau commented 6 years ago

I think it is a problem with the scale feature of Windows 10. If I set it to 100% I don't have the problem. But 100% on a 4k monitor is quite unreadable ;)

variar commented 6 years ago

Might be Qt hidpi issue. I'll try to build glogg with recent Qt version.

variar commented 6 years ago

I've set up dev build artifacts packaging from Appveyor CI builds in my fork. @omasseau, you can try latest build from here https://ci.appveyor.com/project/variar/klogg/build/artifacts?branch=master

tberne commented 2 years ago

I have the same issue in Windows 11 PRO. glogg_rYRIbvIVUp

And, oddly, when selecting the text, it injects a space char between all characters. Perhaps, this is why I can't find any text when searching.

variar commented 2 years ago

@tberne could you try klogg (https://github.com/variar/klogg) in the same environment?

tberne commented 2 years ago

@variar , klogg works like a charm!! Thank you very much!!!