goldendict / goldendict

A feature-rich dictionary lookup program, supporting multiple dictionary formats (StarDict/Babylon/Lingvo/Dictd) and online dictionaries, featuring perfect article rendering with the complete markup, illustrations and other content retained, and allowing you to type in words without any accents or correct case.
http://goldendict.org/
Other
5.83k stars 723 forks source link

the popup window doesn't disappear #1425

Open ghost opened 2 years ago

ghost commented 2 years ago

When I use the hotkey 'ctrl+c+c' for the first time, the popup window won't disappear if I click somewhere else. I need to click on the popup window and then click somewhere else in order to make it disappear. However, if I use this hotkey for the second time, the popup window will disappear properly.

vedgy commented 2 years ago

Which operating system and version? If OS=GNU/Linux, which desktop environment or window manager? Which GoldenDict version?

ghost commented 2 years ago

Windows 10 version 21H1 goldendict version 1.5.0-RC2-372-gc3ff15f screen

vedgy commented 2 years ago

Have you tried both Qt4- and Qt5-based builds?

ghost commented 2 years ago

Yes. I used the Qt4-based build before but it can't display the phonetic transcription properly. There will often be some letters missing. image image Thus I switched to the Qt5-based build and it fixes this problem. And it seems the popup window can disappear properly in the Qt4-based build.

vedgy commented 2 years ago

I have implemented advanced scan popup window flags options in #995. But I use only GNU/Linux and couldn't test the various options on Windows. So they are limited to the single platform. Perhaps someone could try enabling this customization on Windows and checking if it solves the problem. If some option works perfectly with Qt 5 in all Windows versions, even the default for this platform could be changed.

But all this requires someone who can build GoldenDict on Windows. I think there are too few such people, because the large number of dependencies makes building difficult (see #1322).

Note that #995 solves much bigger problems than the one reported in this issue. If this minor annoyance is the only issue with the scan popup on Windows, then it is likely that other window flags would cause worse regressions than what they fix.