Skip to content

Add Grid Statistics table to the DX Stats tab - #1247

Open
ic8tem wants to merge 2 commits into
foldynl:masterfrom
ic8tem:grid-statistics-pr
Open

ic8tem wants to merge 2 commits into
foldynl:masterfrom
ic8tem:grid-statistics-pr

Conversation

@ic8tem

@ic8tem ic8tem commented Nov 17, 2026

Copy link
Copy Markdown

Summary

Adds a Grid Statistics table to the DX Stats tab of the New Contact widget, next to the existing DXCC and Station statistics.

For the 4-character Maidenhead square of the station being entered (e.g. QK23 for QK23KN), it shows the worked/confirmed status per band and mode, exactly like the DXCC table. This is especially useful on VHF/UHF, where grid squares are what count (VUCC and similar awards). The grid is often filled automatically from the previous QSO, the callbook or WSJT-X UDP, so the operator immediately sees whether the square is new on the current band.

Details

  • Reuses DxccTableWidget/DxccTableModel through a new setGrid() method, so colors (eQSL/LoTW/paper), the SAT column, the my_dxcc filter and the highlighting of the current band are the same as in the other two tables.
  • A QSO counts for the square when gridsquare starts with it or the square is listed in vucc_grids (grid-line/corner contacts).
  • Only a valid [A-R]{2}[0-9]{2} square is used in the query; otherwise the table is cleared.
  • Refreshed from gridChanged() and refreshDXStatTables(); cleared on contact reset. The label shows the current square, e.g. Grid Statistics (JN70).
  • .ui: the DX Stats tab now uses a horizontal layout: DXCC and Station tables on the left, Grid table on the right. The grid table uses slightly narrower band columns (34 px) to fit beside the others.
  • No database schema, persisted settings or translations changed (new strings will need translation at release time).

Testing

  • Builds with Qt 6.4 on Ubuntu 24.04 (qmake + make).
  • Builds and links with Qt 6.8.3 / MSVC 2022 on Windows (GitHub Actions in my fork).
  • Not yet verified: interactive behavior on different screen widths, themes and Qt5. Opened as a draft until I have tested it at my station.

The branch has two commits (the second only adds FCT_IDENTIFICATION); feel free to squash on merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V4JxYbVDMZnx94tgmv5qmi

Costantino Cerrotta IC8TEM and others added 2 commits November 17, 2026 21:56
Show worked/confirmed status per band and mode for the 4-character
Maidenhead square of the station being entered, next to the existing
DXCC and Station statistics.

A QSO counts for the square when its GRIDSQUARE starts with it or when
the square is listed in VUCC_GRIDS (grid-line/corner contacts). The
table reuses DxccTableWidget, so colors, the SAT column, the my_dxcc
filter and the band highlighting behave like the other two tables.

The table is refreshed when the grid field changes (manual entry,
callbook, previous QSO or WSJT-X/UDP) and cleared on reset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V4JxYbVDMZnx94tgmv5qmi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V4JxYbVDMZnx94tgmv5qmi
@ic8tem
ic8tem marked this pull request as ready for review November 18, 2026 07:58
@ic8tem

ic8tem commented Nov 18, 2026

Copy link
Copy Markdown
Author

Everything tested on Windows 10 with the portable build from my fork: the Grid Statistics table and normal logging work as expected.

One note: on my PC QLog has to be started as administrator for the LoTW upload to work. The error is "TQSL not found", but the real Windows reason is that tqsl.exe there requires elevated privileges, so it cannot be launched from a non-elevated QLog. This PR does not touch the LoTW code, which is the same as in the official 0.54.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant