OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
867 stars 152 forks source link

Spacebar won't Start/Stop, toggles form elements instead #82

Closed justlep closed 4 years ago

justlep commented 4 years ago

In OpenHantek-Win-x64-Release-b259 on Windows 7 Professional 64bit, I am not able to stop/start the scope using the Spacebar key.

  1. I downloaded OpenHantek from: https://github.com/OpenHantek/OpenHantek6022/releases/download/3.0.4b/OpenHantek-Win-x64-Release-b259.zip
  2. I start OpenHantek. Measurement starts fine (Hantek6022BE).
  3. I hit Spacebar.
  4. I expect the measurement to stop, but it doesn't. Instead, the CH1 checkbox in the right panel gets toggled, so measurent continues with CH1 disabled.

Looks like Spacebar only toggles the first (or last used) form element in the right-hand panels.

Tried to set mouse focus elsewhere, but the behavior persists.

I don't know if it's related, but the program console also shows following warning after startup:

QObject::connect: Cannot queue arguments of type 'QList<double>'
(Make sure 'QList<double>' is registered using qRegisterMetaType().)

As a hotfix, maybe you could add an redundant Shortcut for Start/Stop. Like F4 or so?

Thanks for your help!

Ho-Ro commented 4 years ago

Please check the new binaries.

justlep commented 4 years ago

The S key works perfectly. Thank a lot for this fast fix!

Ho-Ro commented 4 years ago

Gerne, Gruß in meine alte Heimat :)

justlep commented 4 years ago

Vielen Dank & sonnige Grüße zurück :-)

Ho-Ro commented 4 years ago

Hi, I just checked 3.0.5-rc2 on a Win10 Prof 64 in demo mode (execute it as OpenHantek -d) and also the SPACEBAR stops/starts the oscilloscope screen, but nevertheless the S key works - as well as the PAUSE key (if it is still present on your keyboard).