The dual of the additive group $\mathbf Q$ with the discrete topology is $A_\mathbf Q/\mathbf Q$, where $A_\mathbf Q$ is the adele ring of $\mathbf Q$ (viewed as an additive group). See a proof here.
The standard topology on $A_\mathbf Q$ makes it locally compact and $\mathbf Q$ (embedded diagonally) is a discrete subgroup for which the quotient topology on $A_\mathbf Q/\mathbf Q$ is compact, as it needs to be if it's going to be the Pontryagin dual of a discrete abelian group.